#39168A#39168A

#39168A is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.172 H 286.7°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#39168A
RGBrgb(57, 22, 138)
HSLhsl(258, 73%, 31%)
HSVhsv(258, 84%, 54%)
CMYKcmyk(58.7%, 84.1%, 0%, 45.9%)
CIE-LABlab(21.13, 45.08, -57.35)
CIE-LCHlch(21.13, 72.94, 308.17°)
OKLaboklab(34.07% 0.0496 -0.1652)
OKLCHoklch(34.07% 0.172 286.7)
XYZxyz(6.5603, 3.2783, 24.3269)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#39168A #678A16
analogous
#162D8A #39168A #73168A
triadic
#39168A #8A3916 #168A39
tetradic
#39168A #8A162D #678A16 #168A73
square
#39168A #8A162D #678A16 #168A73
split-complementary
#39168A #8A7316 #2D8A16
monochromatic
#0D0520 #230E55 #39168A #4F1EBF #6C3BE0

Accessibility & contrast

On white

12.68
#39168A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#39168A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #39168A
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##39168A#FFFFFF#000000##FFFFFF
##39168A1.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358D
Deuteranopia (green-blind)
#002F88
Tritanopia (blue-blind)
#103A51
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #39168a;
/* rgb */ color: rgb(57, 22, 138);
/* oklch */ color: oklch(34.1% 0.172 286.7);
Tailwind
colors: {
  custom: {
    50: '#7a59ad',
    500: '#39168a',
    950: '#000000',
  },
}
SCSS
$custom: #39168a;
$custom-light: #7a59ad;
$custom-dark: #000000;
JSON
{
  "hex": "#39168a",
  "rgb": {
    "r": 57,
    "g": 22,
    "b": 138
  },
  "hsl": {
    "h": 258.103,
    "s": 72.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34071,
    "c": 0.17246,
    "h": 286.7
  },
  "luminance": 0.03279
}

Semantic roles & 50–950 ramp

primary
#39168A
secondary
#97BE3E
accent
#EF39B8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #39168A

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

Preview Lab → · Contrast checker → · Palette generator →

#39168A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva