#5C1267#5C1267

#5C1267 is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.2% C 0.147 H 322.0°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#5C1267
RGBrgb(92, 18, 103)
HSLhsl(292, 70%, 24%)
HSVhsv(292, 83%, 40%)
CMYKcmyk(10.7%, 82.5%, 0%, 59.6%)
CIE-LABlab(22.61, 43.93, -32.34)
CIE-LCHlch(22.61, 54.55, 323.65°)
OKLaboklab(35.23% 0.1161 -0.0905)
OKLCHoklch(35.23% 0.147 322)
XYZxyz(7.0779, 3.6876, 13.1683)
Luminance0.0369 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1267 #1D6712
analogous
#311267 #5C1267 #671247
triadic
#5C1267 #675C12 #12675C
tetradic
#5C1267 #673112 #1D6712 #124767
square
#5C1267 #673112 #1D6712 #124767
split-complementary
#5C1267 #476712 #126731
monochromatic
#17051A #2D0933 #5C1267 #8B1B9B #B924CF

Accessibility & contrast

On white

12.09
#5C1267 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C1267
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1267#FFFFFF#000000##FFFFFF
##5C12671.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003169
Deuteranopia (green-blind)
#1F3965
Tritanopia (blue-blind)
#5D243C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5c1267;
/* rgb */ color: rgb(92, 18, 103);
/* oklch */ color: oklch(35.2% 0.147 322.0);
Tailwind
colors: {
  custom: {
    50: '#8d5a93',
    500: '#5c1267',
    950: '#000000',
  },
}
SCSS
$custom: #5c1267;
$custom-light: #8d5a93;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1267",
  "rgb": {
    "r": 92,
    "g": 18,
    "b": 103
  },
  "hsl": {
    "h": 292.235,
    "s": 70.248,
    "l": 23.725
  },
  "oklch": {
    "l": 0.35231,
    "c": 0.14719,
    "h": 322
  },
  "luminance": 0.03687
}

Semantic roles & 50–950 ramp

primary
#5C1267
secondary
#449F36
accent
#ED3B52
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0D040D
muted
#7D797E

Preview Lab

Preview with #5C1267

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

Preview Lab → · Contrast checker → · Palette generator →

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