#39157E#39157E

#39157E is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.7% C 0.160 H 290.0°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#39157E
RGBrgb(57, 21, 126)
HSLhsl(261, 71%, 29%)
HSVhsv(261, 83%, 49%)
CMYKcmyk(54.8%, 83.3%, 0%, 50.6%)
CIE-LABlab(19.69, 42.11, -52.15)
CIE-LCHlch(19.69, 67.03, 308.92°)
OKLaboklab(32.69% 0.0546 -0.15)
OKLCHoklch(32.69% 0.16 290)
XYZxyz(5.7203, 2.9123, 19.9953)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#39157E #5A7E15
analogous
#15267E #39157E #6E157E
triadic
#39157E #7E3915 #157E39
tetradic
#39157E #7E1526 #5A7E15 #157E6E
square
#39157E #7E1526 #5A7E15 #157E6E
split-complementary
#39157E #7E6E15 #267E15
monochromatic
#0C041A #210C4A #39157E #511EB2 #6C31DD

Accessibility & contrast

On white

13.27
#39157E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#39157E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #39157E
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##39157E#FFFFFF#000000##FFFFFF
##39157E1.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#002D7C
Tritanopia (blue-blind)
#1F344A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #39157e;
/* rgb */ color: rgb(57, 21, 126);
/* oklch */ color: oklch(32.7% 0.160 290.0);
Tailwind
colors: {
  custom: {
    50: '#7858a4',
    500: '#39157e',
    950: '#000000',
  },
}
SCSS
$custom: #39157e;
$custom-light: #7858a4;
$custom-dark: #000000;
JSON
{
  "hex": "#39157e",
  "rgb": {
    "r": 57,
    "g": 21,
    "b": 126
  },
  "hsl": {
    "h": 260.571,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32694,
    "c": 0.1596,
    "h": 290
  },
  "luminance": 0.02913
}

Semantic roles & 50–950 ramp

primary
#39157E
secondary
#8AB33C
accent
#EE3AB0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #39157E

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

Preview Lab → · Contrast checker → · Palette generator →

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