#5C238E#5C238E

#5C238E is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.9% C 0.167 H 303.9°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#5C238E
RGBrgb(92, 35, 142)
HSLhsl(272, 60%, 35%)
HSVhsv(272, 75%, 56%)
CMYKcmyk(35.2%, 75.4%, 0%, 44.3%)
CIE-LABlab(27.93, 45.88, -48.52)
CIE-LCHlch(27.93, 66.78, 313.40°)
OKLaboklab(39.92% 0.0929 -0.1382)
OKLCHoklch(39.92% 0.167 303.9)
XYZxyz(9.8960, 5.4304, 26.1128)
Luminance0.0543 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C238E #558E23
analogous
#27238E #5C238E #8E238A
triadic
#5C238E #8E5C23 #238E5C
tetradic
#5C238E #8E2723 #558E23 #238A8E
square
#5C238E #8E2723 #558E23 #238A8E
split-complementary
#5C238E #8A8E23 #238E27
monochromatic
#1C0B2C #3C175D #5C238E #7C2FBF #9A56D5

Accessibility & contrast

On white

10.07
#5C238E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#5C238E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C238E
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C238E#FFFFFF#000000##FFFFFF
##5C238E1.0010.072.0910.07
#FFFFFF10.071.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004191
Deuteranopia (green-blind)
#00428C
Tritanopia (blue-blind)
#523D57
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5c238e;
/* rgb */ color: rgb(92, 35, 142);
/* oklch */ color: oklch(39.9% 0.167 303.9);
Tailwind
colors: {
  custom: {
    50: '#8f64b0',
    500: '#5c238e',
    950: '#000000',
  },
}
SCSS
$custom: #5c238e;
$custom-light: #8f64b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5c238e",
  "rgb": {
    "r": 92,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 271.963,
    "s": 60.452,
    "l": 34.706
  },
  "oklch": {
    "l": 0.39925,
    "c": 0.1665,
    "h": 303.9
  },
  "luminance": 0.0543
}

Semantic roles & 50–950 ramp

primary
#5C238E
secondary
#83B953
accent
#E4448F
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5C238E

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

Preview Lab → · Contrast checker → · Palette generator →

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