#5F148B#5F148B

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

Color values

HEX#5F148B
RGBrgb(95, 20, 139)
HSLhsl(278, 75%, 31%)
HSVhsv(278, 86%, 55%)
CMYKcmyk(31.7%, 85.6%, 0%, 45.5%)
CIE-LABlab(26.15, 51.41, -49.53)
CIE-LCHlch(26.15, 71.39, 316.06°)
OKLaboklab(38.7% 0.1107 -0.1409)
OKLCHoklch(38.7% 0.179 308.2)
XYZxyz(9.6287, 4.7974, 24.8399)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F148B #408B14
analogous
#23148B #5F148B #8B147B
triadic
#5F148B #8B5F14 #148B5F
tetradic
#5F148B #8B2314 #408B14 #147B8B
square
#5F148B #8B2314 #408B14 #147B8B
split-complementary
#5F148B #7B8B14 #148B23
monochromatic
#160520 #3A0C55 #5F148B #841CC1 #A337E2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F148B#FFFFFF#000000##FFFFFF
##5F148B1.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)
#003B8E
Deuteranopia (green-blind)
#003F89
Tritanopia (blue-blind)
#583552
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5f148b;
/* rgb */ color: rgb(95, 20, 139);
/* oklch */ color: oklch(38.7% 0.179 308.2);
Tailwind
colors: {
  custom: {
    50: '#925dae',
    500: '#5f148b',
    950: '#000000',
  },
}
SCSS
$custom: #5f148b;
$custom-light: #925dae;
$custom-dark: #000000;
JSON
{
  "hex": "#5f148b",
  "rgb": {
    "r": 95,
    "g": 20,
    "b": 139
  },
  "hsl": {
    "h": 277.815,
    "s": 74.843,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38695,
    "c": 0.17923,
    "h": 308.2
  },
  "luminance": 0.04797
}

Semantic roles & 50–950 ramp

primary
#5F148B
secondary
#6CBF3C
accent
#F1367C
background
#F9F5FA
surface
#F2E9F4
border
#CCC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F148B

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

Preview Lab → · Contrast checker → · Palette generator →

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