#5E1263#5E1263

#5E1263 is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.3% C 0.145 H 325.3°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#5E1263
RGBrgb(94, 18, 99)
HSLhsl(296, 69%, 23%)
HSVhsv(296, 82%, 39%)
CMYKcmyk(5.1%, 81.8%, 0%, 61.2%)
CIE-LABlab(22.70, 43.61, -29.55)
CIE-LCHlch(22.70, 52.68, 325.88°)
OKLaboklab(35.28% 0.1189 -0.0823)
OKLCHoklch(35.28% 0.145 325.3)
XYZxyz(7.0844, 3.7136, 12.1456)
Luminance0.0371 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1263 #176312
analogous
#351263 #5E1263 #63123F
triadic
#5E1263 #635E12 #12635E
tetradic
#5E1263 #633512 #176312 #123F63
square
#5E1263 #633512 #176312 #123F63
split-complementary
#5E1263 #3F6312 #126335
monochromatic
#19051A #2D092F #5E1263 #8F1B97 #C025CB

Accessibility & contrast

On white

12.05
#5E1263 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#5E1263 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1263
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1263#FFFFFF#000000##FFFFFF
##5E12631.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003065
Deuteranopia (green-blind)
#243961
Tritanopia (blue-blind)
#60213A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5e1263;
/* rgb */ color: rgb(94, 18, 99);
/* oklch */ color: oklch(35.3% 0.145 325.3);
Tailwind
colors: {
  custom: {
    50: '#8f5a90',
    500: '#5e1263',
    950: '#000000',
  },
}
SCSS
$custom: #5e1263;
$custom-light: #8f5a90;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1263",
  "rgb": {
    "r": 94,
    "g": 18,
    "b": 99
  },
  "hsl": {
    "h": 296.296,
    "s": 69.231,
    "l": 22.941
  },
  "oklch": {
    "l": 0.35278,
    "c": 0.14462,
    "h": 325.3
  },
  "luminance": 0.03713
}

Semantic roles & 50–950 ramp

primary
#5E1263
secondary
#3C9B36
accent
#EC3C47
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5E1263

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

Preview Lab → · Contrast checker → · Palette generator →

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