#5C1256#5C1256

#5C1256 is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.1% C 0.133 H 331.7°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#5C1256
RGBrgb(92, 18, 86)
HSLhsl(305, 67%, 22%)
HSVhsv(305, 80%, 36%)
CMYKcmyk(0%, 80.4%, 6.5%, 63.9%)
CIE-LABlab(21.51, 40.79, -22.85)
CIE-LCHlch(21.51, 46.75, 330.74°)
OKLaboklab(34.09% 0.1168 -0.0629)
OKLCHoklch(34.09% 0.133 331.7)
XYZxyz(6.3097, 3.3803, 9.1224)
Luminance0.0338 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1256 #125C18
analogous
#3D125C #5C1256 #5C1231
triadic
#5C1256 #565C12 #12565C
tetradic
#5C1256 #5C3D12 #125C18 #12315C
square
#5C1256 #5C3D12 #125C18 #12315C
split-complementary
#5C1256 #315C12 #125C3D
monochromatic
#1A0518 #290826 #5C1256 #8F1C86 #C226B6

Accessibility & contrast

On white

12.53
#5C1256 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#5C1256 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1256
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1256#FFFFFF#000000##FFFFFF
##5C12561.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2D58
Deuteranopia (green-blind)
#2A3754
Tritanopia (blue-blind)
#601B33
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5c1256;
/* rgb */ color: rgb(92, 18, 86);
/* oklch */ color: oklch(34.1% 0.133 331.7);
Tailwind
colors: {
  custom: {
    50: '#8d5986',
    500: '#5c1256',
    950: '#000000',
  },
}
SCSS
$custom: #5c1256;
$custom-light: #8d5986;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1256",
  "rgb": {
    "r": 92,
    "g": 18,
    "b": 86
  },
  "hsl": {
    "h": 304.865,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.3409,
    "c": 0.13264,
    "h": 331.7
  },
  "luminance": 0.0338
}

Semantic roles & 50–950 ramp

primary
#5C1256
secondary
#35943D
accent
#EA4C3E
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0D040B
muted
#7D797C

Preview Lab

Preview with #5C1256

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

Preview Lab → · Contrast checker → · Palette generator →

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