#5C227E#5C227E

#5C227E is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.5% C 0.151 H 310.0°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#5C227E
RGBrgb(92, 34, 126)
HSLhsl(278, 58%, 31%)
HSVhsv(278, 73%, 49%)
CMYKcmyk(27%, 73%, 0%, 50.6%)
CIE-LABlab(26.52, 42.49, -40.80)
CIE-LCHlch(26.52, 58.90, 316.16°)
OKLaboklab(38.54% 0.0968 -0.1155)
OKLCHoklch(38.54% 0.151 310)
XYZxyz(8.7508, 4.9259, 20.2244)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C227E #447E22
analogous
#2E227E #5C227E #7E2272
triadic
#5C227E #7E5C22 #227E5C
tetradic
#5C227E #7E2E22 #447E22 #22727E
square
#5C227E #7E2E22 #447E22 #22727E
split-complementary
#5C227E #727E22 #227E2E
monochromatic
#16081E #39154E #5C227E #7F2FAE #9E4CCF

Accessibility & contrast

On white

10.58
#5C227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#5C227E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C227E
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C227E#FFFFFF#000000##FFFFFF
##5C227E1.0010.581.9910.58
#FFFFFF10.581.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C81
Deuteranopia (green-blind)
#11407C
Tritanopia (blue-blind)
#57364D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5c227e;
/* rgb */ color: rgb(92, 34, 126);
/* oklch */ color: oklch(38.5% 0.151 310.0);
Tailwind
colors: {
  custom: {
    50: '#8e63a4',
    500: '#5c227e',
    950: '#000000',
  },
}
SCSS
$custom: #5c227e;
$custom-light: #8e63a4;
$custom-dark: #000000;
JSON
{
  "hex": "#5c227e",
  "rgb": {
    "r": 92,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 277.826,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38537,
    "c": 0.15066,
    "h": 310
  },
  "luminance": 0.04926
}

Semantic roles & 50–950 ramp

primary
#5C227E
secondary
#71B14B
accent
#E14780
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D050F
muted
#7E7A7F

Preview Lab

Preview with #5C227E

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

Preview Lab → · Contrast checker → · Palette generator →

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