#5E266B#5E266B

#5E266B is a dark, vivid purple. Relative luminance 0.048; OKLCH L 38.0% C 0.125 H 319.7°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#5E266B
RGBrgb(94, 38, 107)
HSLhsl(289, 48%, 28%)
HSVhsv(289, 64%, 42%)
CMYKcmyk(12.1%, 64.5%, 0%, 58%)
CIE-LABlab(26.24, 36.72, -29.12)
CIE-LCHlch(26.24, 46.86, 321.59°)
OKLaboklab(37.98% 0.0956 -0.0812)
OKLCHoklch(37.98% 0.125 319.7)
XYZxyz(7.9627, 4.8278, 14.4195)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E266B #336B26
analogous
#3B266B #5E266B #6B2655
triadic
#5E266B #6B5E26 #266B5E
tetradic
#5E266B #6B3B26 #336B26 #26556B
square
#5E266B #6B3B26 #336B26 #26556B
split-complementary
#5E266B #556B26 #266B3B
monochromatic
#140817 #36163E #5E266B #863698 #AA4CBF

Accessibility & contrast

On white

10.68
#5E266B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#5E266B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E266B
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E266B#FFFFFF#000000##FFFFFF
##5E266B1.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153A6D
Deuteranopia (green-blind)
#2B4069
Tritanopia (blue-blind)
#5E3144
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5e266b;
/* rgb */ color: rgb(94, 38, 107);
/* oklch */ color: oklch(38.0% 0.125 319.7);
Tailwind
colors: {
  custom: {
    50: '#8e6496',
    500: '#5e266b',
    950: '#000000',
  },
}
SCSS
$custom: #5e266b;
$custom-light: #8e6496;
$custom-dark: #000000;
JSON
{
  "hex": "#5e266b",
  "rgb": {
    "r": 94,
    "g": 38,
    "b": 107
  },
  "hsl": {
    "h": 288.696,
    "s": 47.586,
    "l": 28.431
  },
  "oklch": {
    "l": 0.37983,
    "c": 0.12547,
    "h": 319.7
  },
  "luminance": 0.04827
}

Semantic roles & 50–950 ramp

primary
#5E266B
secondary
#5E9E4F
accent
#D7516A
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060D
muted
#7D7A7E

Preview Lab

Preview with #5E266B

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

Preview Lab → · Contrast checker → · Palette generator →

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