#5C237E#5C237E

#5C237E is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.7% C 0.149 H 309.8°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#5C237E
RGBrgb(92, 35, 126)
HSLhsl(278, 57%, 32%)
HSVhsv(278, 72%, 49%)
CMYKcmyk(27%, 72.2%, 0%, 50.6%)
CIE-LABlab(26.69, 42.02, -40.53)
CIE-LCHlch(26.69, 58.38, 316.03°)
OKLaboklab(38.66% 0.0957 -0.1147)
OKLCHoklch(38.66% 0.149 309.8)
XYZxyz(8.7798, 4.9839, 20.2341)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C237E #457E23
analogous
#2E237E #5C237E #7E2373
triadic
#5C237E #7E5C23 #237E5C
tetradic
#5C237E #7E2E23 #457E23 #23737E
square
#5C237E #7E2E23 #457E23 #23737E
split-complementary
#5C237E #737E23 #237E2E
monochromatic
#16081E #39164E #5C237E #7F30AE #9E4ECE

Accessibility & contrast

On white

10.52
#5C237E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#5C237E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C237E
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C237E#FFFFFF#000000##FFFFFF
##5C237E1.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D81
Deuteranopia (green-blind)
#12407C
Tritanopia (blue-blind)
#57374E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5c237e;
/* rgb */ color: rgb(92, 35, 126);
/* oklch */ color: oklch(38.7% 0.149 309.8);
Tailwind
colors: {
  custom: {
    50: '#8e63a4',
    500: '#5c237e',
    950: '#000000',
  },
}
SCSS
$custom: #5c237e;
$custom-light: #8e63a4;
$custom-dark: #000000;
JSON
{
  "hex": "#5c237e",
  "rgb": {
    "r": 92,
    "g": 35,
    "b": 126
  },
  "hsl": {
    "h": 277.582,
    "s": 56.522,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38656,
    "c": 0.14934,
    "h": 309.8
  },
  "luminance": 0.04984
}

Semantic roles & 50–950 ramp

primary
#5C237E
secondary
#72B04C
accent
#E04881
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D050F
muted
#7E7A7F

Preview Lab

Preview with #5C237E

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

Preview Lab → · Contrast checker → · Palette generator →

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