#5F158C#5F158C

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

Color values

HEX#5F158C
RGBrgb(95, 21, 140)
HSLhsl(277, 74%, 32%)
HSVhsv(277, 85%, 55%)
CMYKcmyk(32.1%, 85%, 0%, 45.1%)
CIE-LABlab(26.34, 51.32, -49.85)
CIE-LCHlch(26.34, 71.54, 315.83°)
OKLaboklab(38.85% 0.1098 -0.1418)
OKLCHoklch(38.85% 0.179 307.7)
XYZxyz(9.7201, 4.8628, 25.2324)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F158C #428C15
analogous
#24158C #5F158C #8C157E
triadic
#5F158C #8C5F15 #158C5F
tetradic
#5F158C #8C2415 #428C15 #157E8C
square
#5F158C #8C2415 #428C15 #157E8C
split-complementary
#5F158C #7E8C15 #158C24
monochromatic
#170522 #3B0D57 #5F158C #831DC1 #A23AE1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F158C#FFFFFF#000000##FFFFFF
##5F158C1.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)
#003C8F
Deuteranopia (green-blind)
#003F8A
Tritanopia (blue-blind)
#573652
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5f158c;
/* rgb */ color: rgb(95, 21, 140);
/* oklch */ color: oklch(38.9% 0.179 307.7);
Tailwind
colors: {
  custom: {
    50: '#925eae',
    500: '#5f158c',
    950: '#000000',
  },
}
SCSS
$custom: #5f158c;
$custom-light: #925eae;
$custom-dark: #000000;
JSON
{
  "hex": "#5f158c",
  "rgb": {
    "r": 95,
    "g": 21,
    "b": 140
  },
  "hsl": {
    "h": 277.311,
    "s": 73.913,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38854,
    "c": 0.17935,
    "h": 307.7
  },
  "luminance": 0.04863
}

Semantic roles & 50–950 ramp

primary
#5F158C
secondary
#6EC03D
accent
#F1377D
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F158C

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

Preview Lab → · Contrast checker → · Palette generator →

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