#39217B#39217B

#39217B is a dark, vivid violet. Relative luminance 0.034; OKLCH L 33.9% C 0.143 H 288.6°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#39217B
RGBrgb(57, 33, 123)
HSLhsl(256, 58%, 31%)
HSVhsv(256, 73%, 48%)
CMYKcmyk(53.7%, 73.2%, 0%, 51.8%)
CIE-LABlab(21.53, 35.13, -47.21)
CIE-LCHlch(21.53, 58.85, 306.65°)
OKLaboklab(33.9% 0.0455 -0.1356)
OKLCHoklch(33.9% 0.143 288.6)
XYZxyz(5.8053, 3.3874, 19.0830)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#39217B #637B21
analogous
#21367B #39217B #66217B
triadic
#39217B #7B3921 #217B39
tetradic
#39217B #7B2136 #637B21 #217B66
square
#39217B #7B2136 #637B21 #217B66
split-complementary
#39217B #7B6621 #367B21
monochromatic
#0C071A #23144B #39217B #4F2EAB #6C48CE

Accessibility & contrast

On white

12.52
#39217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#39217B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #39217B
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##39217B#FFFFFF#000000##FFFFFF
##39217B1.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367E
Deuteranopia (green-blind)
#003179
Tritanopia (blue-blind)
#20384B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #39217b;
/* rgb */ color: rgb(57, 33, 123);
/* oklch */ color: oklch(33.9% 0.143 288.6);
Tailwind
colors: {
  custom: {
    50: '#775ea2',
    500: '#39217b',
    950: '#000000',
  },
}
SCSS
$custom: #39217b;
$custom-light: #775ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#39217b",
  "rgb": {
    "r": 57,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 256,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33898,
    "c": 0.14304,
    "h": 288.6
  },
  "luminance": 0.03388
}

Semantic roles & 50–950 ramp

primary
#39217B
secondary
#93AE4A
accent
#E147B8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #39217B

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

Preview Lab → · Contrast checker → · Palette generator →

#39217B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva