#5F148A#5F148A

#5F148A is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.6% C 0.178 H 308.5°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#5F148A
RGBrgb(95, 20, 138)
HSLhsl(278, 75%, 31%)
HSVhsv(278, 86%, 54%)
CMYKcmyk(31.2%, 85.5%, 0%, 45.9%)
CIE-LABlab(26.06, 51.18, -49.05)
CIE-LCHlch(26.06, 70.89, 316.22°)
OKLaboklab(38.61% 0.111 -0.1395)
OKLCHoklch(38.61% 0.178 308.5)
XYZxyz(9.5560, 4.7684, 24.4568)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F148A #3F8A14
analogous
#24148A #5F148A #8A147A
triadic
#5F148A #8A5F14 #148A5F
tetradic
#5F148A #8A2414 #3F8A14 #147A8A
square
#5F148A #8A2414 #3F8A14 #147A8A
split-complementary
#5F148A #7A8A14 #148A24
monochromatic
#15051F #3A0C55 #5F148A #841CBF #A336E2

Accessibility & contrast

On white

10.75
#5F148A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5F148A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F148A
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F148A#FFFFFF#000000##FFFFFF
##5F148A1.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8D
Deuteranopia (green-blind)
#003E88
Tritanopia (blue-blind)
#583551
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5f148a;
/* rgb */ color: rgb(95, 20, 138);
/* oklch */ color: oklch(38.6% 0.178 308.5);
Tailwind
colors: {
  custom: {
    50: '#925dad',
    500: '#5f148a',
    950: '#000000',
  },
}
SCSS
$custom: #5f148a;
$custom-light: #925dad;
$custom-dark: #000000;
JSON
{
  "hex": "#5f148a",
  "rgb": {
    "r": 95,
    "g": 20,
    "b": 138
  },
  "hsl": {
    "h": 278.136,
    "s": 74.684,
    "l": 30.98
  },
  "oklch": {
    "l": 0.3861,
    "c": 0.17831,
    "h": 308.5
  },
  "luminance": 0.04768
}

Semantic roles & 50–950 ramp

primary
#5F148A
secondary
#6BBE3C
accent
#F1367B
background
#F9F5FA
surface
#F2E9F4
border
#CCC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F148A

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

Preview Lab → · Contrast checker → · Palette generator →

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