#5F1263#5F1263

#5F1263 is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.4% C 0.145 H 325.9°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#5F1263
RGBrgb(95, 18, 99)
HSLhsl(297, 69%, 23%)
HSVhsv(297, 82%, 39%)
CMYKcmyk(4%, 81.8%, 0%, 61.2%)
CIE-LABlab(22.89, 43.83, -29.24)
CIE-LCHlch(22.89, 52.69, 326.29°)
OKLaboklab(35.44% 0.1201 -0.0814)
OKLCHoklch(35.44% 0.145 325.9)
XYZxyz(7.1876, 3.7669, 12.1505)
Luminance0.0377 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1263 #166312
analogous
#361263 #5F1263 #63123E
triadic
#5F1263 #635F12 #12635F
tetradic
#5F1263 #633612 #166312 #123E63
square
#5F1263 #633612 #166312 #123E63
split-complementary
#5F1263 #3E6312 #126336
monochromatic
#19051A #2D092F #5F1263 #911B97 #C225CB

Accessibility & contrast

On white

11.98
#5F1263 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#5F1263 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1263
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1263#FFFFFF#000000##FFFFFF
##5F12631.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003165
Deuteranopia (green-blind)
#253A61
Tritanopia (blue-blind)
#62213A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5f1263;
/* rgb */ color: rgb(95, 18, 99);
/* oklch */ color: oklch(35.4% 0.145 325.9);
Tailwind
colors: {
  custom: {
    50: '#905a90',
    500: '#5f1263',
    950: '#000000',
  },
}
SCSS
$custom: #5f1263;
$custom-light: #905a90;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1263",
  "rgb": {
    "r": 95,
    "g": 18,
    "b": 99
  },
  "hsl": {
    "h": 297.037,
    "s": 69.231,
    "l": 22.941
  },
  "oklch": {
    "l": 0.35444,
    "c": 0.1451,
    "h": 325.9
  },
  "luminance": 0.03766
}

Semantic roles & 50–950 ramp

primary
#5F1263
secondary
#3B9B36
accent
#EC3C44
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5F1263

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

Preview Lab → · Contrast checker → · Palette generator →

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