#39158F#39158F

#39158F is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.5% C 0.179 H 285.7°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#39158F
RGBrgb(57, 21, 143)
HSLhsl(258, 74%, 32%)
HSVhsv(258, 85%, 56%)
CMYKcmyk(60.1%, 85.3%, 0%, 43.9%)
CIE-LABlab(21.54, 46.90, -59.79)
CIE-LCHlch(21.54, 75.99, 308.11°)
OKLaboklab(34.52% 0.0483 -0.1723)
OKLCHoklch(34.52% 0.179 285.7)
XYZxyz(6.9119, 3.3889, 26.2712)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#39158F #6B8F15
analogous
#152E8F #39158F #76158F
triadic
#39158F #8F3915 #158F39
tetradic
#39158F #8F152E #6B8F15 #158F76
square
#39158F #8F152E #6B8F15 #158F76
split-complementary
#39158F #8F7615 #2E8F15
monochromatic
#0E0524 #240D5A #39158F #4E1DC4 #6D3CE2

Accessibility & contrast

On white

12.52
#39158F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#39158F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #39158F
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##39158F#FFFFFF#000000##FFFFFF
##39158F1.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003792
Deuteranopia (green-blind)
#00308D
Tritanopia (blue-blind)
#063B54
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #39158f;
/* rgb */ color: rgb(57, 21, 143);
/* oklch */ color: oklch(34.5% 0.179 285.7);
Tailwind
colors: {
  custom: {
    50: '#7b59b1',
    500: '#39158f',
    950: '#000000',
  },
}
SCSS
$custom: #39158f;
$custom-light: #7b59b1;
$custom-dark: #000000;
JSON
{
  "hex": "#39158f",
  "rgb": {
    "r": 57,
    "g": 21,
    "b": 143
  },
  "hsl": {
    "h": 257.705,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34519,
    "c": 0.17891,
    "h": 285.7
  },
  "luminance": 0.03389
}

Semantic roles & 50–950 ramp

primary
#39158F
secondary
#9BC23E
accent
#F137BA
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #39158F

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

Preview Lab → · Contrast checker → · Palette generator →

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