#5C256D#5C256D

#5C256D is a dark, vivid purple. Relative luminance 0.047; OKLCH L 37.7% C 0.128 H 317.4°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#5C256D
RGBrgb(92, 37, 109)
HSLhsl(286, 49%, 29%)
HSVhsv(286, 66%, 43%)
CMYKcmyk(15.6%, 66.1%, 0%, 57.3%)
CIE-LABlab(25.87, 37.13, -31.01)
CIE-LCHlch(25.87, 48.38, 320.13°)
OKLaboklab(37.69% 0.0943 -0.0868)
OKLCHoklch(37.69% 0.128 317.4)
XYZxyz(7.8351, 4.7029, 14.9601)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C256D #366D25
analogous
#38256D #5C256D #6D255A
triadic
#5C256D #6D5C25 #256D5C
tetradic
#5C256D #6D3825 #366D25 #255A6D
square
#5C256D #6D3825 #366D25 #255A6D
split-complementary
#5C256D #5A6D25 #256D38
monochromatic
#130817 #35153F #5C256D #83359B #A64BC2

Accessibility & contrast

On white

10.82
#5C256D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#5C256D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C256D
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C256D#FFFFFF#000000##FFFFFF
##5C256D1.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E3A6F
Deuteranopia (green-blind)
#273F6B
Tritanopia (blue-blind)
#5B3245
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5c256d;
/* rgb */ color: rgb(92, 37, 109);
/* oklch */ color: oklch(37.7% 0.128 317.4);
Tailwind
colors: {
  custom: {
    50: '#8d6497',
    500: '#5c256d',
    950: '#000000',
  },
}
SCSS
$custom: #5c256d;
$custom-light: #8d6497;
$custom-dark: #000000;
JSON
{
  "hex": "#5c256d",
  "rgb": {
    "r": 92,
    "g": 37,
    "b": 109
  },
  "hsl": {
    "h": 285.833,
    "s": 49.315,
    "l": 28.627
  },
  "oklch": {
    "l": 0.37694,
    "c": 0.12819,
    "h": 317.4
  },
  "luminance": 0.04703
}

Semantic roles & 50–950 ramp

primary
#5C256D
secondary
#61A04E
accent
#D94F70
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C050D
muted
#7D7A7E

Preview Lab

Preview with #5C256D

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

Preview Lab → · Contrast checker → · Palette generator →

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