#39158D#39158D

#39158D is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.3% C 0.177 H 286.1°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#39158D
RGBrgb(57, 21, 141)
HSLhsl(258, 74%, 32%)
HSVhsv(258, 85%, 55%)
CMYKcmyk(59.6%, 85.1%, 0%, 44.7%)
CIE-LABlab(21.32, 46.34, -58.91)
CIE-LCHlch(21.32, 74.95, 308.19°)
OKLaboklab(34.3% 0.0491 -0.1697)
OKLCHoklch(34.3% 0.177 286.1)
XYZxyz(6.7618, 3.3289, 25.4804)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#39158D #698D15
analogous
#152D8D #39158D #75158D
triadic
#39158D #8D3915 #158D39
tetradic
#39158D #8D152D #698D15 #158D75
square
#39158D #8D152D #698D15 #158D75
split-complementary
#39158D #8D7515 #2D8D15
monochromatic
#0E0522 #230D58 #39158D #4F1DC2 #6D3BE2

Accessibility & contrast

On white

12.61
#39158D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#39158D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #39158D
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##39158D#FFFFFF#000000##FFFFFF
##39158D1.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003690
Deuteranopia (green-blind)
#00308B
Tritanopia (blue-blind)
#0A3B53
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #39158d;
/* rgb */ color: rgb(57, 21, 141);
/* oklch */ color: oklch(34.3% 0.177 286.1);
Tailwind
colors: {
  custom: {
    50: '#7b59b0',
    500: '#39158d',
    950: '#000000',
  },
}
SCSS
$custom: #39158d;
$custom-light: #7b59b0;
$custom-dark: #000000;
JSON
{
  "hex": "#39158d",
  "rgb": {
    "r": 57,
    "g": 21,
    "b": 141
  },
  "hsl": {
    "h": 258,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34299,
    "c": 0.17666,
    "h": 286.1
  },
  "luminance": 0.03329
}

Semantic roles & 50–950 ramp

primary
#39158D
secondary
#99C13D
accent
#F137B9
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #39158D

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

Preview Lab → · Contrast checker → · Palette generator →

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