#5F148E#5F148E

#5F148E is a dark, vivid violet. Relative luminance 0.049; OKLCH L 39.0% C 0.182 H 307.1°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#5F148E
RGBrgb(95, 20, 142)
HSLhsl(277, 75%, 32%)
HSVhsv(277, 86%, 56%)
CMYKcmyk(33.1%, 85.9%, 0%, 44.3%)
CIE-LABlab(26.41, 52.07, -50.98)
CIE-LCHlch(26.41, 72.87, 315.61°)
OKLaboklab(38.96% 0.1098 -0.1452)
OKLCHoklch(38.96% 0.182 307.1)
XYZxyz(9.8509, 4.8863, 26.0101)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F148E #438E14
analogous
#22148E #5F148E #8E1480
triadic
#5F148E #8E5F14 #148E5F
tetradic
#5F148E #8E2214 #438E14 #14808E
square
#5F148E #8E2214 #438E14 #14808E
split-complementary
#5F148E #808E14 #148E22
monochromatic
#170523 #3B0C58 #5F148E #831CC4 #A239E3

Accessibility & contrast

On white

10.62
#5F148E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#5F148E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F148E
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F148E#FFFFFF#000000##FFFFFF
##5F148E1.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f148e;
/* rgb */ color: rgb(95, 20, 142);
/* oklch */ color: oklch(39.0% 0.182 307.1);
Tailwind
colors: {
  custom: {
    50: '#925eb0',
    500: '#5f148e',
    950: '#000000',
  },
}
SCSS
$custom: #5f148e;
$custom-light: #925eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f148e",
  "rgb": {
    "r": 95,
    "g": 20,
    "b": 142
  },
  "hsl": {
    "h": 276.885,
    "s": 75.309,
    "l": 31.765
  },
  "oklch": {
    "l": 0.38955,
    "c": 0.18203,
    "h": 307.1
  },
  "luminance": 0.04886
}

Semantic roles & 50–950 ramp

primary
#5F148E
secondary
#70C23C
accent
#F2367E
background
#F9F5FA
surface
#F2EAF5
border
#CCC6CF
text
#0E0511
muted
#7E7980

Preview Lab

Preview with #5F148E

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

Preview Lab → · Contrast checker → · Palette generator →

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