#5F138A#5F138A

#5F138A is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.5% C 0.179 H 308.6°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#5F138A
RGBrgb(95, 19, 138)
HSLhsl(278, 76%, 31%)
HSVhsv(278, 86%, 54%)
CMYKcmyk(31.2%, 86.2%, 0%, 45.9%)
CIE-LABlab(25.96, 51.48, -49.22)
CIE-LCHlch(25.96, 71.22, 316.29°)
OKLaboklab(38.54% 0.1117 -0.14)
OKLCHoklch(38.54% 0.179 308.6)
XYZxyz(9.5387, 4.7338, 24.4510)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F138A #3E8A13
analogous
#23138A #5F138A #8A1379
triadic
#5F138A #8A5F13 #138A5F
tetradic
#5F138A #8A2313 #3E8A13 #13798A
square
#5F138A #8A2313 #3E8A13 #13798A
split-complementary
#5F138A #798A13 #138A23
monochromatic
#15041E #3A0C54 #5F138A #841AC0 #A434E3

Accessibility & contrast

On white

10.79
#5F138A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5F138A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F138A
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F138A#FFFFFF#000000##FFFFFF
##5F138A1.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8D
Deuteranopia (green-blind)
#003E88
Tritanopia (blue-blind)
#583451
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5f138a;
/* rgb */ color: rgb(95, 19, 138);
/* oklch */ color: oklch(38.5% 0.179 308.6);
Tailwind
colors: {
  custom: {
    50: '#925dad',
    500: '#5f138a',
    950: '#000000',
  },
}
SCSS
$custom: #5f138a;
$custom-light: #925dad;
$custom-dark: #000000;
JSON
{
  "hex": "#5f138a",
  "rgb": {
    "r": 95,
    "g": 19,
    "b": 138
  },
  "hsl": {
    "h": 278.319,
    "s": 75.796,
    "l": 30.784
  },
  "oklch": {
    "l": 0.38539,
    "c": 0.1791,
    "h": 308.6
  },
  "luminance": 0.04734
}

Semantic roles & 50–950 ramp

primary
#5F138A
secondary
#6ABE3A
accent
#F2357A
background
#F9F5FA
surface
#F2E9F4
border
#CCC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F138A

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

Preview Lab → · Contrast checker → · Palette generator →

#5F138A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva