#39178F#39178F

#39178F is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.177 H 285.4°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#39178F
RGBrgb(57, 23, 143)
HSLhsl(257, 72%, 33%)
HSVhsv(257, 84%, 56%)
CMYKcmyk(60.1%, 83.9%, 0%, 43.9%)
CIE-LABlab(21.82, 46.07, -59.32)
CIE-LCHlch(21.82, 75.11, 307.83°)
OKLaboklab(34.71% 0.0472 -0.1709)
OKLCHoklch(34.71% 0.177 285.4)
XYZxyz(6.9502, 3.4654, 26.2839)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#39178F #6D8F17
analogous
#17318F #39178F #75178F
triadic
#39178F #8F3917 #178F39
tetradic
#39178F #8F1731 #6D8F17 #178F75
square
#39178F #8F1731 #6D8F17 #178F75
split-complementary
#39178F #8F7517 #318F17
monochromatic
#0F0626 #240F5A #39178F #4E1FC4 #6D40E0

Accessibility & contrast

On white

12.40
#39178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#39178F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #39178F
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##39178F#FFFFFF#000000##FFFFFF
##39178F1.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003792
Deuteranopia (green-blind)
#00318D
Tritanopia (blue-blind)
#053C54
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #39178f;
/* rgb */ color: rgb(57, 23, 143);
/* oklch */ color: oklch(34.7% 0.177 285.4);
Tailwind
colors: {
  custom: {
    50: '#7b5ab1',
    500: '#39178f',
    950: '#000000',
  },
}
SCSS
$custom: #39178f;
$custom-light: #7b5ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#39178f",
  "rgb": {
    "r": 57,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 257,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34711,
    "c": 0.17734,
    "h": 285.4
  },
  "luminance": 0.03466
}

Semantic roles & 50–950 ramp

primary
#39178F
secondary
#9DC141
accent
#EF39BB
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #39178F

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

Preview Lab → · Contrast checker → · Palette generator →

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