#5F148D#5F148D

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

Color values

HEX#5F148D
RGBrgb(95, 20, 141)
HSLhsl(277, 75%, 32%)
HSVhsv(277, 86%, 55%)
CMYKcmyk(32.6%, 85.8%, 0%, 44.7%)
CIE-LABlab(26.32, 51.85, -50.50)
CIE-LCHlch(26.32, 72.38, 315.76°)
OKLaboklab(38.87% 0.1101 -0.1438)
OKLCHoklch(38.87% 0.181 307.5)
XYZxyz(9.7762, 4.8564, 25.6165)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F148D #428D14
analogous
#23148D #5F148D #8D147F
triadic
#5F148D #8D5F14 #148D5F
tetradic
#5F148D #8D2314 #428D14 #147F8D
square
#5F148D #8D2314 #428D14 #147F8D
split-complementary
#5F148D #7F8D14 #148D23
monochromatic
#170522 #3B0C57 #5F148D #831CC3 #A239E3

Accessibility & contrast

On white

10.65
#5F148D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F148D
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F148D#FFFFFF#000000##FFFFFF
##5F148D1.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.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: #5f148d;
/* rgb */ color: rgb(95, 20, 141);
/* oklch */ color: oklch(38.9% 0.181 307.5);
Tailwind
colors: {
  custom: {
    50: '#925eaf',
    500: '#5f148d',
    950: '#000000',
  },
}
SCSS
$custom: #5f148d;
$custom-light: #925eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#5f148d",
  "rgb": {
    "r": 95,
    "g": 20,
    "b": 141
  },
  "hsl": {
    "h": 277.19,
    "s": 75.155,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38868,
    "c": 0.1811,
    "h": 307.5
  },
  "luminance": 0.04856
}

Semantic roles & 50–950 ramp

primary
#5F148D
secondary
#6EC13C
accent
#F2367D
background
#F9F5FA
surface
#F2EAF5
border
#CCC6CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F148D

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

Preview Lab → · Contrast checker → · Palette generator →

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