#39217F#39217F

#39217F is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.3% C 0.148 H 287.6°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#39217F
RGBrgb(57, 33, 127)
HSLhsl(255, 59%, 31%)
HSVhsv(255, 74%, 50%)
CMYKcmyk(55.1%, 74%, 0%, 50.2%)
CIE-LABlab(21.91, 36.37, -49.14)
CIE-LCHlch(21.91, 61.13, 306.50°)
OKLaboklab(34.28% 0.0447 -0.1412)
OKLCHoklch(34.28% 0.148 287.6)
XYZxyz(6.0608, 3.4896, 20.4288)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#39217F #677F21
analogous
#21387F #39217F #68217F
triadic
#39217F #7F3921 #217F39
tetradic
#39217F #7F2138 #677F21 #217F68
square
#39217F #7F2138 #677F21 #217F68
split-complementary
#39217F #7F6821 #387F21
monochromatic
#0D081E #23144E #39217F #4F2EB0 #6C4AD0

Accessibility & contrast

On white

12.37
#39217F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#39217F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #39217F
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##39217F#FFFFFF#000000##FFFFFF
##39217F1.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#00327D
Tritanopia (blue-blind)
#1D3A4E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #39217f;
/* rgb */ color: rgb(57, 33, 127);
/* oklch */ color: oklch(34.3% 0.148 287.6);
Tailwind
colors: {
  custom: {
    50: '#775fa5',
    500: '#39217f',
    950: '#000000',
  },
}
SCSS
$custom: #39217f;
$custom-light: #775fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#39217f",
  "rgb": {
    "r": 57,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 255.319,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34279,
    "c": 0.14815,
    "h": 287.6
  },
  "luminance": 0.0349
}

Semantic roles & 50–950 ramp

primary
#39217F
secondary
#97B24A
accent
#E246BA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #39217F

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

Preview Lab → · Contrast checker → · Palette generator →

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