#39127E#39127E

#39127E is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.4% C 0.162 H 290.4°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).

Color values

HEX#39127E
RGBrgb(57, 18, 126)
HSLhsl(262, 75%, 28%)
HSVhsv(262, 86%, 49%)
CMYKcmyk(54.8%, 85.7%, 0%, 50.6%)
CIE-LABlab(19.26, 43.37, -52.85)
CIE-LCHlch(19.26, 68.37, 309.37°)
OKLaboklab(32.4% 0.0566 -0.152)
OKLCHoklch(32.4% 0.162 290.4)
XYZxyz(5.6685, 2.8086, 19.9780)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#39127E #577E12
analogous
#12217E #39127E #6F127E
triadic
#39127E #7E3912 #127E39
tetradic
#39127E #7E1221 #577E12 #127E6F
square
#39127E #7E1221 #577E12 #127E6F
split-complementary
#39127E #7E6F12 #217E12
monochromatic
#0C041B #210A48 #39127E #511AB4 #6C2AE1

Accessibility & contrast

On white

13.45
#39127E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#39127E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #39127E
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##39127E#FFFFFF#000000##FFFFFF
##39127E1.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#002C7C
Tritanopia (blue-blind)
#1F334A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #39127e;
/* rgb */ color: rgb(57, 18, 126);
/* oklch */ color: oklch(32.4% 0.162 290.4);
Tailwind
colors: {
  custom: {
    50: '#7857a4',
    500: '#39127e',
    950: '#000000',
  },
}
SCSS
$custom: #39127e;
$custom-light: #7857a4;
$custom-dark: #000000;
JSON
{
  "hex": "#39127e",
  "rgb": {
    "r": 57,
    "g": 18,
    "b": 126
  },
  "hsl": {
    "h": 261.667,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.32398,
    "c": 0.16218,
    "h": 290.4
  },
  "luminance": 0.02809
}

Semantic roles & 50–950 ramp

primary
#39127E
secondary
#87B438
accent
#F236AE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A030F
muted
#7C787F

Preview Lab

Preview with #39127E

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

Preview Lab → · Contrast checker → · Palette generator →

#39127E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva