#5F195E#5F195E

#5F195E is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.8% C 0.133 H 328.5°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#5F195E
RGBrgb(95, 25, 94)
HSLhsl(301, 58%, 24%)
HSVhsv(301, 74%, 37%)
CMYKcmyk(0%, 73.7%, 1.1%, 62.7%)
CIE-LABlab(23.46, 40.36, -25.04)
CIE-LCHlch(23.46, 47.49, 328.18°)
OKLaboklab(35.75% 0.113 -0.0692)
OKLCHoklch(35.75% 0.133 328.5)
XYZxyz(7.0872, 3.9368, 10.9741)
Luminance0.0394 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F195E #195F1A
analogous
#3D195F #5F195E #5F193B
triadic
#5F195E #5E5F19 #195E5F
tetradic
#5F195E #5F3D19 #195F1A #193B5F
square
#5F195E #5F3D19 #195F1A #193B5F
split-complementary
#5F195E #3B5F19 #195F3D
monochromatic
#180618 #2F0C2E #5F195E #8F268E #C032BE

Accessibility & contrast

On white

11.75
#5F195E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#5F195E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F195E
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F195E#FFFFFF#000000##FFFFFF
##5F195E1.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F3260
Deuteranopia (green-blind)
#2C3B5C
Tritanopia (blue-blind)
#622339
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5f195e;
/* rgb */ color: rgb(95, 25, 94);
/* oklch */ color: oklch(35.8% 0.133 328.5);
Tailwind
colors: {
  custom: {
    50: '#8f5d8c',
    500: '#5f195e',
    950: '#000000',
  },
}
SCSS
$custom: #5f195e;
$custom-light: #8f5d8c;
$custom-dark: #000000;
JSON
{
  "hex": "#5f195e",
  "rgb": {
    "r": 95,
    "g": 25,
    "b": 94
  },
  "hsl": {
    "h": 300.857,
    "s": 58.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.35755,
    "c": 0.13255,
    "h": 328.5
  },
  "luminance": 0.03936
}

Semantic roles & 50–950 ramp

primary
#5F195E
secondary
#3F9540
accent
#E24846
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D050C
muted
#7E797D

Preview Lab

Preview with #5F195E

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

Preview Lab → · Contrast checker → · Palette generator →

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