#5F138E#5F138E

#5F138E is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.9% C 0.183 H 307.2°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#5F138E
RGBrgb(95, 19, 142)
HSLhsl(277, 76%, 32%)
HSVhsv(277, 87%, 56%)
CMYKcmyk(33.1%, 86.6%, 0%, 44.3%)
CIE-LABlab(26.31, 52.36, -51.14)
CIE-LCHlch(26.31, 73.19, 315.68°)
OKLaboklab(38.89% 0.1105 -0.1456)
OKLCHoklch(38.89% 0.183 307.2)
XYZxyz(9.8336, 4.8518, 26.0044)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F138E #428E13
analogous
#21138E #5F138E #8E1380
triadic
#5F138E #8E5F13 #138E5F
tetradic
#5F138E #8E2113 #428E13 #13808E
square
#5F138E #8E2113 #428E13 #13808E
split-complementary
#5F138E #808E13 #138E21
monochromatic
#170522 #3B0C58 #5F138E #831AC4 #A237E4

Accessibility & contrast

On white

10.66
#5F138E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#5F138E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F138E
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F138E#FFFFFF#000000##FFFFFF
##5F138E1.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#003F8C
Tritanopia (blue-blind)
#573653
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5f138e;
/* rgb */ color: rgb(95, 19, 142);
/* oklch */ color: oklch(38.9% 0.183 307.2);
Tailwind
colors: {
  custom: {
    50: '#925db0',
    500: '#5f138e',
    950: '#000000',
  },
}
SCSS
$custom: #5f138e;
$custom-light: #925db0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f138e",
  "rgb": {
    "r": 95,
    "g": 19,
    "b": 142
  },
  "hsl": {
    "h": 277.073,
    "s": 76.398,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38885,
    "c": 0.1828,
    "h": 307.2
  },
  "luminance": 0.04852
}

Semantic roles & 50–950 ramp

primary
#5F138E
secondary
#6EC23B
accent
#F3357D
background
#F9F5FA
surface
#F2E9F5
border
#CCC5CF
text
#0E0511
muted
#7E7980

Preview Lab

Preview with #5F138E

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

Preview Lab → · Contrast checker → · Palette generator →

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