#5F0F56#5F0F56

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

Color values

HEX#5F0F56
RGBrgb(95, 15, 86)
HSLhsl(307, 73%, 22%)
HSVhsv(307, 84%, 37%)
CMYKcmyk(0%, 84.2%, 9.5%, 62.7%)
CIE-LABlab(21.75, 42.48, -22.42)
CIE-LCHlch(21.75, 48.03, 332.17°)
OKLaboklab(34.38% 0.123 -0.0616)
OKLCHoklch(34.38% 0.138 333.4)
XYZxyz(6.5699, 3.4470, 9.1216)
Luminance0.0345 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F0F56 #0F5F18
analogous
#400F5F #5F0F56 #5F0F2E
triadic
#5F0F56 #565F0F #0F565F
tetradic
#5F0F56 #5F400F #0F5F18 #0F2E5F
square
#5F0F56 #5F400F #0F5F18 #0F2E5F
split-complementary
#5F0F56 #2E5F0F #0F5F40
monochromatic
#1A0418 #2A0726 #5F0F56 #941786 #C920B6

Accessibility & contrast

On white

12.43
#5F0F56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#5F0F56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F0F56
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F0F56#FFFFFF#000000##FFFFFF
##5F0F561.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f0f56;
/* rgb */ color: rgb(95, 15, 86);
/* oklch */ color: oklch(34.4% 0.138 333.4);
Tailwind
colors: {
  custom: {
    50: '#905986',
    500: '#5f0f56',
    950: '#000000',
  },
}
SCSS
$custom: #5f0f56;
$custom-light: #905986;
$custom-dark: #000000;
JSON
{
  "hex": "#5f0f56",
  "rgb": {
    "r": 95,
    "g": 15,
    "b": 86
  },
  "hsl": {
    "h": 306.75,
    "s": 72.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.34375,
    "c": 0.13751,
    "h": 333.4
  },
  "luminance": 0.03446
}

Semantic roles & 50–950 ramp

primary
#5F0F56
secondary
#32983D
accent
#EF4D38
background
#F9F5F8
surface
#F1E9EF
border
#CBC5CA
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5F0F56

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

Preview Lab → · Contrast checker → · Palette generator →

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