#5C266E#5C266E

#5C266E is a dark, vivid purple. Relative luminance 0.048; OKLCH L 37.9% C 0.128 H 316.7°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#5C266E
RGBrgb(92, 38, 110)
HSLhsl(285, 49%, 29%)
HSVhsv(285, 65%, 43%)
CMYKcmyk(16.4%, 65.5%, 0%, 56.9%)
CIE-LABlab(26.12, 36.84, -31.26)
CIE-LCHlch(26.12, 48.31, 319.69°)
OKLaboklab(37.9% 0.093 -0.0875)
OKLCHoklch(37.9% 0.128 316.7)
XYZxyz(7.9208, 4.7876, 15.2557)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C266E #386E26
analogous
#38266E #5C266E #6E265C
triadic
#5C266E #6E5C26 #266E5C
tetradic
#5C266E #6E3826 #386E26 #265C6E
square
#5C266E #6E3826 #386E26 #265C6E
split-complementary
#5C266E #5C6E26 #266E38
monochromatic
#130817 #361641 #5C266E #82369B #A44DC1

Accessibility & contrast

On white

10.73
#5C266E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#5C266E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C266E
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C266E#FFFFFF#000000##FFFFFF
##5C266E1.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F3A70
Deuteranopia (green-blind)
#273F6C
Tritanopia (blue-blind)
#5B3346
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5c266e;
/* rgb */ color: rgb(92, 38, 110);
/* oklch */ color: oklch(37.9% 0.128 316.7);
Tailwind
colors: {
  custom: {
    50: '#8d6498',
    500: '#5c266e',
    950: '#000000',
  },
}
SCSS
$custom: #5c266e;
$custom-light: #8d6498;
$custom-dark: #000000;
JSON
{
  "hex": "#5c266e",
  "rgb": {
    "r": 92,
    "g": 38,
    "b": 110
  },
  "hsl": {
    "h": 285,
    "s": 48.649,
    "l": 29.02
  },
  "oklch": {
    "l": 0.37895,
    "c": 0.1277,
    "h": 316.7
  },
  "luminance": 0.04787
}

Semantic roles & 50–950 ramp

primary
#5C266E
secondary
#63A14F
accent
#D85072
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060D
muted
#7D7A7E

Preview Lab

Preview with #5C266E

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

Preview Lab → · Contrast checker → · Palette generator →

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