#5F0C55#5F0C55

#5F0C55 is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.1% C 0.140 H 334.0°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#5F0C55
RGBrgb(95, 12, 85)
HSLhsl(307, 78%, 21%)
HSVhsv(307, 87%, 37%)
CMYKcmyk(0%, 87.4%, 10.5%, 62.7%)
CIE-LABlab(21.40, 43.15, -22.30)
CIE-LCHlch(21.40, 48.57, 332.67°)
OKLaboklab(34.11% 0.1254 -0.0612)
OKLCHoklch(34.11% 0.14 334)
XYZxyz(6.4905, 3.3523, 8.8978)
Luminance0.0335 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F0C55 #0C5F16
analogous
#3F0C5F #5F0C55 #5F0C2B
triadic
#5F0C55 #555F0C #0C555F
tetradic
#5F0C55 #5F3F0C #0C5F16 #0C2B5F
square
#5F0C55 #5F3F0C #0C5F16 #0C2B5F
split-complementary
#5F0C55 #2B5F0C #0C5F3F
monochromatic
#1B0318 #290524 #5F0C55 #951386 #CC1AB6

Accessibility & contrast

On white

12.57
#5F0C55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#5F0C55 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F0C55
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F0C55#FFFFFF#000000##FFFFFF
##5F0C551.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092C57
Deuteranopia (green-blind)
#2B3753
Tritanopia (blue-blind)
#641631
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5f0c55;
/* rgb */ color: rgb(95, 12, 85);
/* oklch */ color: oklch(34.1% 0.140 334.0);
Tailwind
colors: {
  custom: {
    50: '#905885',
    500: '#5f0c55',
    950: '#000000',
  },
}
SCSS
$custom: #5f0c55;
$custom-light: #905885;
$custom-dark: #000000;
JSON
{
  "hex": "#5f0c55",
  "rgb": {
    "r": 95,
    "g": 12,
    "b": 85
  },
  "hsl": {
    "h": 307.229,
    "s": 77.57,
    "l": 20.98
  },
  "oklch": {
    "l": 0.34107,
    "c": 0.13953,
    "h": 334
  },
  "luminance": 0.03352
}

Semantic roles & 50–950 ramp

primary
#5F0C55
secondary
#2D993A
accent
#F44B34
background
#F9F5F8
surface
#F1E9EF
border
#CBC5CA
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5F0C55

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

Preview Lab → · Contrast checker → · Palette generator →

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