#5F138C#5F138C

#5F138C is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.7% C 0.181 H 307.9°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#5F138C
RGBrgb(95, 19, 140)
HSLhsl(278, 76%, 31%)
HSVhsv(278, 86%, 55%)
CMYKcmyk(32.1%, 86.4%, 0%, 45.1%)
CIE-LABlab(26.13, 51.92, -50.18)
CIE-LCHlch(26.13, 72.21, 315.98°)
OKLaboklab(38.71% 0.1111 -0.1428)
OKLCHoklch(38.71% 0.181 307.9)
XYZxyz(9.6848, 4.7922, 25.2207)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F138C #408C13
analogous
#22138C #5F138C #8C137C
triadic
#5F138C #8C5F13 #138C5F
tetradic
#5F138C #8C2213 #408C13 #137C8C
square
#5F138C #8C2213 #408C13 #137C8C
split-complementary
#5F138C #7C8C13 #138C22
monochromatic
#160420 #3A0C56 #5F138C #841AC2 #A336E4

Accessibility & contrast

On white

10.72
#5F138C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#5F138C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F138C
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F138C#FFFFFF#000000##FFFFFF
##5F138C1.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8F
Deuteranopia (green-blind)
#003E8A
Tritanopia (blue-blind)
#573552
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5f138c;
/* rgb */ color: rgb(95, 19, 140);
/* oklch */ color: oklch(38.7% 0.181 307.9);
Tailwind
colors: {
  custom: {
    50: '#925dae',
    500: '#5f138c',
    950: '#000000',
  },
}
SCSS
$custom: #5f138c;
$custom-light: #925dae;
$custom-dark: #000000;
JSON
{
  "hex": "#5f138c",
  "rgb": {
    "r": 95,
    "g": 19,
    "b": 140
  },
  "hsl": {
    "h": 277.686,
    "s": 76.101,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38711,
    "c": 0.18095,
    "h": 307.9
  },
  "luminance": 0.04792
}

Semantic roles & 50–950 ramp

primary
#5F138C
secondary
#6CC03B
accent
#F3357C
background
#F9F5FA
surface
#F2E9F4
border
#CCC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F138C

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

Preview Lab → · Contrast checker → · Palette generator →

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