ColorContract
#7C3AED

An accessible color system for a purple brand

A saturated purple has strong contrast on white. In dark mode it loses much of that contrast, and a lighter step takes over for buttons.

Open this example in the tool

What happens to the brand

UseThreshold Light Dark
Action background, against the surface3:1
#7C3AED 5.69:1 passthe brand as is
#8D65F0 5.25:1 passbrand step 500
Button text, on the brand, hover and pressed4.5:1
#F6F8FA 5.35:1 passneutral 50
#000000 5.25:1 passblack
Text in the brand color, on the surface4.5:1
#7C3AED 5.69:1 passthe brand as is
#894CFD 4.51:1 passvariant brand.text
Focus ring, against the surface3:1
#702BDC 6.84:1 passbrand step 700
#9D81F1 6.84:1 passbrand step 400

In light mode, the brand is the action background as is (5.69:1 on white). In dark mode, the brand reaches 3.68:1 on black, but no text color reaches 4.5:1 on it and on its hover and pressed states at once: the action background moves to brand step 500 (#8D65F0, 5.25:1). The brand stays intact.

The tokens in an interface

Every text in this preview sits on a background its combination is guaranteed against.

Light preview, with the system tokens

Monthly report

Secondary text, legible on every surface.

Email addressname@example.com

SaveFocus
ErrorWarningSuccessInfo
Dark preview, with the system tokens

Monthly report

Secondary text, legible on every surface.

Email addressname@example.com

SaveFocus
ErrorWarningSuccessInfo

The scales

11 steps per hue, default settings, algorithm v1.11.

Brand
  1. 50 #F8F7FC
  2. 100 #DFDAF6
  3. 200 #C7BDF3
  4. 300 #B1A0F2
  5. 400 #9D81F1
  6. 500 #8D65F0
  7. 600 #7F42ED
  8. 700 #702BDC
  9. 800 #551FA9
  10. 900 #3C137A
  11. 950 #24094E
Neutral
  1. 50 #F6F8FA
  2. 100 #DADEE5
  3. 200 #BFC5CC
  4. 300 #A7ACB3
  5. 400 #8E949B
  6. 500 #7A8087
  7. 600 #656B72
  8. 700 #565B62
  9. 800 #40444B
  10. 900 #2B2F36
  11. 950 #171C21
Error
  1. 50 #FBF6F7
  2. 100 #F1D8D9
  3. 200 #EAB8BB
  4. 300 #E6959B
  5. 400 #E1717D
  6. 500 #CA5C68
  7. 600 #B24655
  8. 700 #9C3847
  9. 800 #772935
  10. 900 #551B24
  11. 950 #350E14
Warning
  1. 50 #FBF7F5
  2. 100 #F1D9CA
  3. 200 #EABA9C
  4. 300 #E59A69
  5. 400 #CD814F
  6. 500 #B36E42
  7. 600 #985B37
  8. 700 #834D2D
  9. 800 #653921
  10. 900 #482615
  11. 950 #2D150A
Success
  1. 50 #EDFBF4
  2. 100 #98EFC9
  3. 200 #7AD6B0
  4. 300 #64BC98
  5. 400 #53A282
  6. 500 #468C6F
  7. 600 #3A755D
  8. 700 #30644F
  9. 800 #234B3B
  10. 900 #163428
  11. 950 #0B1F17
Info
  1. 50 #F5F8FB
  2. 100 #D3DEF0
  3. 200 #B0C5E9
  4. 300 #8BADE3
  5. 400 #6794DD
  6. 500 #4C7ED2
  7. 600 #3869BB
  8. 700 #2C59A3
  9. 800 #1F437D
  10. 900 #142E5A
  11. 950 #091A38
Hex values
50100200300400500600700800900950
Brand#F8F7FC#DFDAF6#C7BDF3#B1A0F2#9D81F1#8D65F0#7F42ED#702BDC#551FA9#3C137A#24094E
Neutral#F6F8FA#DADEE5#BFC5CC#A7ACB3#8E949B#7A8087#656B72#565B62#40444B#2B2F36#171C21
Error#FBF6F7#F1D8D9#EAB8BB#E6959B#E1717D#CA5C68#B24655#9C3847#772935#551B24#350E14
Warning#FBF7F5#F1D9CA#EABA9C#E59A69#CD814F#B36E42#985B37#834D2D#653921#482615#2D150A
Success#EDFBF4#98EFC9#7AD6B0#64BC98#53A282#468C6F#3A755D#30644F#234B3B#163428#0B1F17
Info#F5F8FB#D3DEF0#B0C5E9#8BADE3#6794DD#4C7ED2#3869BB#2C59A3#1F437D#142E5A#091A38

Other examples

Blue · Red · Yellow · Green · Orange · Muted brand

Open the toolHow it worksExamplesFAQComparisonGuides: Your brand color fails contrast · Your brand color in dark mode