#5F0E56#5F0E56

#5F0E56 is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.3% C 0.138 H 333.4°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#5F0E56
RGBrgb(95, 14, 86)
HSLhsl(307, 74%, 21%)
HSVhsv(307, 85%, 37%)
CMYKcmyk(0%, 85.3%, 9.5%, 62.7%)
CIE-LABlab(21.65, 42.77, -22.58)
CIE-LCHlch(21.65, 48.36, 332.17°)
OKLaboklab(34.3% 0.1238 -0.062)
OKLCHoklch(34.3% 0.138 333.4)
XYZxyz(6.5561, 3.4194, 9.1170)
Luminance0.0342 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F0E56 #0E5F17
analogous
#400E5F #5F0E56 #5F0E2E
triadic
#5F0E56 #565F0E #0E565F
tetradic
#5F0E56 #5F400E #0E5F17 #0E2E5F
square
#5F0E56 #5F400E #0E5F17 #0E2E5F
split-complementary
#5F0E56 #2E5F0E #0E5F40
monochromatic
#1B0418 #2A0626 #5F0E56 #941686 #CA1EB7

Accessibility & contrast

On white

12.47
#5F0E56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#5F0E56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F0E56
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F0E56#FFFFFF#000000##FFFFFF
##5F0E561.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A2D58
Deuteranopia (green-blind)
#2B3854
Tritanopia (blue-blind)
#641832
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5f0e56;
/* rgb */ color: rgb(95, 14, 86);
/* oklch */ color: oklch(34.3% 0.138 333.4);
Tailwind
colors: {
  custom: {
    50: '#905886',
    500: '#5f0e56',
    950: '#000000',
  },
}
SCSS
$custom: #5f0e56;
$custom-light: #905886;
$custom-dark: #000000;
JSON
{
  "hex": "#5f0e56",
  "rgb": {
    "r": 95,
    "g": 14,
    "b": 86
  },
  "hsl": {
    "h": 306.667,
    "s": 74.312,
    "l": 21.373
  },
  "oklch": {
    "l": 0.34303,
    "c": 0.13848,
    "h": 333.4
  },
  "luminance": 0.03419
}

Semantic roles & 50–950 ramp

primary
#5F0E56
secondary
#30993C
accent
#F14C37
background
#F9F5F8
surface
#F1E9EF
border
#CBC5CA
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5F0E56

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

Preview Lab → · Contrast checker → · Palette generator →

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