#4020C3#4020C3

#4020C3 is a dark, highly saturated violet. Relative luminance 0.061; OKLCH L 41.9% C 0.228 H 279.1°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#4020C3
RGBrgb(64, 32, 195)
HSLhsl(252, 72%, 45%)
HSVhsv(252, 84%, 76%)
CMYKcmyk(67.2%, 83.6%, 0%, 23.5%)
CIE-LABlab(29.57, 57.70, -77.90)
CIE-LCHlch(29.57, 96.94, 306.53°)
OKLaboklab(41.91% 0.0359 -0.2249)
OKLCHoklch(41.91% 0.228 279.1)
XYZxyz(12.4780, 6.0621, 52.1317)
Luminance0.0606 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4020C3 #A3C320
analogous
#2052C3 #4020C3 #9220C3
triadic
#4020C3 #C34020 #20C340
tetradic
#4020C3 #C32052 #A3C320 #20C392
square
#4020C3 #C32052 #A3C320 #20C392
split-complementary
#4020C3 #C39220 #52C320
monochromatic
#1D0F5A #2F178E #4020C3 #6040E0 #8C75E8

Accessibility & contrast

On white

9.49
#4020C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#4020C3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4020C3
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4020C3#FFFFFF#000000##FFFFFF
##4020C31.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CC7
Deuteranopia (green-blind)
#003FC0
Tritanopia (blue-blind)
#005574
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4020c3;
/* rgb */ color: rgb(64, 32, 195);
/* oklch */ color: oklch(41.9% 0.228 279.1);
Tailwind
colors: {
  custom: {
    50: '#8863d7',
    500: '#4020c3',
    950: '#000000',
  },
}
SCSS
$custom: #4020c3;
$custom-light: #8863d7;
$custom-dark: #000000;
JSON
{
  "hex": "#4020c3",
  "rgb": {
    "r": 64,
    "g": 32,
    "b": 195
  },
  "hsl": {
    "h": 251.779,
    "s": 71.806,
    "l": 44.51
  },
  "oklch": {
    "l": 0.41906,
    "c": 0.22777,
    "h": 279.1
  },
  "luminance": 0.06063
}

Semantic roles & 50–950 ramp

primary
#4020C3
secondary
#BDCF6F
accent
#EF39CB
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0615
muted
#7E7A83

Preview Lab

Preview with #4020C3

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#4020C3 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva