#5F1255#5F1255

#5F1255 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.6% C 0.134 H 334.1°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#5F1255
RGBrgb(95, 18, 85)
HSLhsl(308, 68%, 22%)
HSVhsv(308, 81%, 37%)
CMYKcmyk(0%, 81.1%, 10.5%, 62.7%)
CIE-LABlab(22.02, 41.36, -21.32)
CIE-LCHlch(22.02, 46.53, 332.73°)
OKLaboklab(34.55% 0.1201 -0.0584)
OKLCHoklch(34.55% 0.134 334.1)
XYZxyz(6.5754, 3.5220, 8.9261)
Luminance0.0352 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1255 #125F1C
analogous
#43125F #5F1255 #5F122F
triadic
#5F1255 #555F12 #12555F
tetradic
#5F1255 #5F4312 #125F1C #122F5F
square
#5F1255 #5F4312 #125F1C #122F5F
split-complementary
#5F1255 #2F5F12 #125F43
monochromatic
#1A0517 #2C0827 #5F1255 #921C83 #C625B1

Accessibility & contrast

On white

12.32
#5F1255 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#5F1255 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1255
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1255#FFFFFF#000000##FFFFFF
##5F12551.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102E57
Deuteranopia (green-blind)
#2D3953
Tritanopia (blue-blind)
#641A32
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5f1255;
/* rgb */ color: rgb(95, 18, 85);
/* oklch */ color: oklch(34.6% 0.134 334.1);
Tailwind
colors: {
  custom: {
    50: '#8f5a85',
    500: '#5f1255',
    950: '#000000',
  },
}
SCSS
$custom: #5f1255;
$custom-light: #8f5a85;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1255",
  "rgb": {
    "r": 95,
    "g": 18,
    "b": 85
  },
  "hsl": {
    "h": 307.792,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.34551,
    "c": 0.13358,
    "h": 334.1
  },
  "luminance": 0.03521
}

Semantic roles & 50–950 ramp

primary
#5F1255
secondary
#369742
accent
#EB533D
background
#F9F5F8
surface
#F1E9EF
border
#CBC5CA
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5F1255

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

Preview Lab → · Contrast checker → · Palette generator →

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