#39217C#39217C

#39217C is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.0% C 0.144 H 288.3°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#39217C
RGBrgb(57, 33, 124)
HSLhsl(256, 58%, 31%)
HSVhsv(256, 73%, 49%)
CMYKcmyk(54%, 73.4%, 0%, 51.4%)
CIE-LABlab(21.63, 35.44, -47.70)
CIE-LCHlch(21.63, 59.42, 306.61°)
OKLaboklab(33.99% 0.0453 -0.137)
OKLCHoklch(33.99% 0.144 288.3)
XYZxyz(5.8682, 3.4125, 19.4144)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#39217C #647C21
analogous
#21367C #39217C #66217C
triadic
#39217C #7C3921 #217C39
tetradic
#39217C #7C2136 #647C21 #217C66
square
#39217C #7C2136 #647C21 #217C66
split-complementary
#39217C #7C6621 #367C21
monochromatic
#0D071B #23144C #39217C #4F2EAC #6C49CF

Accessibility & contrast

On white

12.48
#39217C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #39217C
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##39217C#FFFFFF#000000##FFFFFF
##39217C1.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367F
Deuteranopia (green-blind)
#00317A
Tritanopia (blue-blind)
#20394C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #39217c;
/* rgb */ color: rgb(57, 33, 124);
/* oklch */ color: oklch(34.0% 0.144 288.3);
Tailwind
colors: {
  custom: {
    50: '#775ea3',
    500: '#39217c',
    950: '#000000',
  },
}
SCSS
$custom: #39217c;
$custom-light: #775ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#39217c",
  "rgb": {
    "r": 57,
    "g": 33,
    "b": 124
  },
  "hsl": {
    "h": 255.824,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33993,
    "c": 0.14432,
    "h": 288.3
  },
  "luminance": 0.03413
}

Semantic roles & 50–950 ramp

primary
#39217C
secondary
#94AF4A
accent
#E147B8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #39217C

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

Preview Lab → · Contrast checker → · Palette generator →

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