#5F138D#5F138D

#5F138D is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.8% C 0.182 H 307.5°. Best body text is #FFFFFF at 10.69:1 contrast (WCAG AA passes).

Color values

HEX#5F138D
RGBrgb(95, 19, 141)
HSLhsl(277, 76%, 31%)
HSVhsv(277, 87%, 55%)
CMYKcmyk(32.6%, 86.5%, 0%, 44.7%)
CIE-LABlab(26.22, 52.14, -50.66)
CIE-LCHlch(26.22, 72.70, 315.82°)
OKLaboklab(38.8% 0.1108 -0.1442)
OKLCHoklch(38.8% 0.182 307.5)
XYZxyz(9.7589, 4.8219, 25.6107)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F138D #418D13
analogous
#22138D #5F138D #8D137E
triadic
#5F138D #8D5F13 #138D5F
tetradic
#5F138D #8D2213 #418D13 #137E8D
square
#5F138D #8D2213 #418D13 #137E8D
split-complementary
#5F138D #7E8D13 #138D22
monochromatic
#160421 #3B0C57 #5F138D #831AC3 #A336E4

Accessibility & contrast

On white

10.69
#5F138D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F138D
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F138D#FFFFFF#000000##FFFFFF
##5F138D1.0010.691.9610.69
#FFFFFF10.691.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f138d;
/* rgb */ color: rgb(95, 19, 141);
/* oklch */ color: oklch(38.8% 0.182 307.5);
Tailwind
colors: {
  custom: {
    50: '#925daf',
    500: '#5f138d',
    950: '#000000',
  },
}
SCSS
$custom: #5f138d;
$custom-light: #925daf;
$custom-dark: #000000;
JSON
{
  "hex": "#5f138d",
  "rgb": {
    "r": 95,
    "g": 19,
    "b": 141
  },
  "hsl": {
    "h": 277.377,
    "s": 76.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38798,
    "c": 0.18188,
    "h": 307.5
  },
  "luminance": 0.04822
}

Semantic roles & 50–950 ramp

primary
#5F138D
secondary
#6DC13B
accent
#F3357D
background
#F9F5FA
surface
#F2E9F5
border
#CCC5CF
text
#0E0510
muted
#7E797F

Preview Lab

Preview with #5F138D

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

Preview Lab → · Contrast checker → · Palette generator →

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