#5F1256#5F1256

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

Color values

HEX#5F1256
RGBrgb(95, 18, 86)
HSLhsl(307, 68%, 22%)
HSVhsv(307, 81%, 37%)
CMYKcmyk(0%, 81.1%, 9.5%, 62.7%)
CIE-LABlab(22.08, 41.53, -21.90)
CIE-LCHlch(22.08, 46.95, 332.19°)
OKLaboklab(34.61% 0.1202 -0.0601)
OKLCHoklch(34.61% 0.134 333.4)
XYZxyz(6.6154, 3.5380, 9.1368)
Luminance0.0354 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1256 #125F1B
analogous
#42125F #5F1256 #5F1230
triadic
#5F1256 #565F12 #12565F
tetradic
#5F1256 #5F4212 #125F1B #12305F
square
#5F1256 #5F4212 #125F1B #12305F
split-complementary
#5F1256 #305F12 #125F42
monochromatic
#1A0517 #2C0827 #5F1256 #921C85 #C625B3

Accessibility & contrast

On white

12.30
#5F1256 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#5F1256 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1256
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1256#FFFFFF#000000##FFFFFF
##5F12561.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F2E58
Deuteranopia (green-blind)
#2D3954
Tritanopia (blue-blind)
#641A33
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5f1256;
/* rgb */ color: rgb(95, 18, 86);
/* oklch */ color: oklch(34.6% 0.134 333.4);
Tailwind
colors: {
  custom: {
    50: '#8f5a86',
    500: '#5f1256',
    950: '#000000',
  },
}
SCSS
$custom: #5f1256;
$custom-light: #8f5a86;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1256",
  "rgb": {
    "r": 95,
    "g": 18,
    "b": 86
  },
  "hsl": {
    "h": 307.013,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.34611,
    "c": 0.13437,
    "h": 333.4
  },
  "luminance": 0.03537
}

Semantic roles & 50–950 ramp

primary
#5F1256
secondary
#369741
accent
#EB513D
background
#F9F5F8
surface
#F1E9EF
border
#CBC5CA
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5F1256

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

Preview Lab → · Contrast checker → · Palette generator →

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