#5F148F#5F148F

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

Color values

HEX#5F148F
RGBrgb(95, 20, 143)
HSLhsl(277, 75%, 32%)
HSVhsv(277, 86%, 56%)
CMYKcmyk(33.6%, 86%, 0%, 43.9%)
CIE-LABlab(26.50, 52.29, -51.46)
CIE-LCHlch(26.50, 73.36, 315.46°)
OKLaboklab(39.04% 0.1095 -0.1466)
OKLCHoklch(39.04% 0.183 306.8)
XYZxyz(9.9263, 4.9165, 26.4073)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F148F #448F14
analogous
#21148F #5F148F #8F1482
triadic
#5F148F #8F5F14 #148F5F
tetradic
#5F148F #8F2114 #448F14 #14828F
square
#5F148F #8F2114 #448F14 #14828F
split-complementary
#5F148F #828F14 #148F21
monochromatic
#180524 #3B0C59 #5F148F #831CC5 #A13AE3

Accessibility & contrast

On white

10.59
#5F148F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F148F
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F148F#FFFFFF#000000##FFFFFF
##5F148F1.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#003F8D
Tritanopia (blue-blind)
#563754
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5f148f;
/* rgb */ color: rgb(95, 20, 143);
/* oklch */ color: oklch(39.0% 0.183 306.8);
Tailwind
colors: {
  custom: {
    50: '#925eb1',
    500: '#5f148f',
    950: '#000000',
  },
}
SCSS
$custom: #5f148f;
$custom-light: #925eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f148f",
  "rgb": {
    "r": 95,
    "g": 20,
    "b": 143
  },
  "hsl": {
    "h": 276.585,
    "s": 75.46,
    "l": 31.961
  },
  "oklch": {
    "l": 0.39042,
    "c": 0.18296,
    "h": 306.8
  },
  "luminance": 0.04916
}

Semantic roles & 50–950 ramp

primary
#5F148F
secondary
#71C33C
accent
#F2367F
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0E0511
muted
#7E7980

Preview Lab

Preview with #5F148F

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

Preview Lab → · Contrast checker → · Palette generator →

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