#200540#200540

#200540 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.2% C 0.102 H 297.7°. Best body text is #FFFFFF at 18.15:1 contrast (WCAG AA passes).

Color values

HEX#200540
RGBrgb(32, 5, 64)
HSLhsl(267, 86%, 14%)
HSVhsv(267, 92%, 25%)
CMYKcmyk(50%, 92.2%, 0%, 74.9%)
CIE-LABlab(7.10, 27.91, -31.40)
CIE-LCHlch(7.10, 42.02, 311.63°)
OKLaboklab(21.18% 0.0474 -0.0901)
OKLCHoklch(21.18% 0.102 297.7)
XYZxyz(1.5751, 0.7858, 4.9182)
Luminance0.0079 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#200540 #254005
analogous
#050740 #200540 #3D0540
triadic
#200540 #402005 #054020
tetradic
#200540 #400507 #254005 #05403D
square
#200540 #400507 #254005 #05403D
split-complementary
#200540 #403D05 #074005
monochromatic
#0E021C #0E021C #200540 #3C0979 #590EB2

Accessibility & contrast

On white

18.15
#200540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#200540 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #200540
18.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##200540#FFFFFF#000000##FFFFFF
##2005401.0018.151.1618.15
#FFFFFF18.151.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001642
Deuteranopia (green-blind)
#00153F
Tritanopia (blue-blind)
#181623
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #200540;
/* rgb */ color: rgb(32, 5, 64);
/* oklch */ color: oklch(21.2% 0.102 297.7);
Tailwind
colors: {
  custom: {
    50: '#604975',
    500: '#200540',
    950: '#000000',
  },
}
SCSS
$custom: #200540;
$custom-light: #604975;
$custom-dark: #000000;
JSON
{
  "hex": "#200540",
  "rgb": {
    "r": 32,
    "g": 5,
    "b": 64
  },
  "hsl": {
    "h": 267.458,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.21177,
    "c": 0.10183,
    "h": 297.7
  },
  "luminance": 0.00786
}

Semantic roles & 50–950 ramp

primary
#200540
secondary
#548120
accent
#FC2C9D
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #200540

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

Preview Lab → · Contrast checker → · Palette generator →

#200540 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva