#39157F#39157F

#39157F is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.8% C 0.161 H 289.7°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#39157F
RGBrgb(57, 21, 127)
HSLhsl(260, 72%, 29%)
HSVhsv(260, 83%, 50%)
CMYKcmyk(55.1%, 83.5%, 0%, 50.2%)
CIE-LABlab(19.79, 42.39, -52.61)
CIE-LCHlch(19.79, 67.56, 308.86°)
OKLaboklab(32.8% 0.0543 -0.1513)
OKLCHoklch(32.8% 0.161 289.7)
XYZxyz(5.7852, 2.9382, 20.3369)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#39157F #5B7F15
analogous
#15267F #39157F #6E157F
triadic
#39157F #7F3915 #157F39
tetradic
#39157F #7F1526 #5B7F15 #157F6E
square
#39157F #7F1526 #5B7F15 #157F6E
split-complementary
#39157F #7F6E15 #267F15
monochromatic
#0C041A #210C4A #39157F #511EB4 #6C31DD

Accessibility & contrast

On white

13.23
#39157F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#39157F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #39157F
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##39157F#FFFFFF#000000##FFFFFF
##39157F1.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#002D7D
Tritanopia (blue-blind)
#1E354B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #39157f;
/* rgb */ color: rgb(57, 21, 127);
/* oklch */ color: oklch(32.8% 0.161 289.7);
Tailwind
colors: {
  custom: {
    50: '#7858a5',
    500: '#39157f',
    950: '#000000',
  },
}
SCSS
$custom: #39157f;
$custom-light: #7858a5;
$custom-dark: #000000;
JSON
{
  "hex": "#39157f",
  "rgb": {
    "r": 57,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 260.377,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32799,
    "c": 0.16074,
    "h": 289.7
  },
  "luminance": 0.02938
}

Semantic roles & 50–950 ramp

primary
#39157F
secondary
#8BB43C
accent
#EE39B1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #39157F

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

Preview Lab → · Contrast checker → · Palette generator →

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