#5C238B#5C238B

#5C238B is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.7% C 0.163 H 304.9°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#5C238B
RGBrgb(92, 35, 139)
HSLhsl(273, 60%, 34%)
HSVhsv(273, 75%, 55%)
CMYKcmyk(33.8%, 74.8%, 0%, 45.5%)
CIE-LABlab(27.69, 45.14, -47.05)
CIE-LCHlch(27.69, 65.21, 313.81°)
OKLaboklab(39.68% 0.0935 -0.1339)
OKLCHoklch(39.68% 0.163 304.9)
XYZxyz(9.6738, 5.3415, 24.9425)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C238B #528B23
analogous
#28238B #5C238B #8B2386
triadic
#5C238B #8B5C23 #238B5C
tetradic
#5C238B #8B2823 #528B23 #23868B
square
#5C238B #8B2823 #528B23 #23868B
split-complementary
#5C238B #868B23 #238B28
monochromatic
#1B0A29 #3C175A #5C238B #7C2FBC #9A54D4

Accessibility & contrast

On white

10.15
#5C238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#5C238B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C238B
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C238B#FFFFFF#000000##FFFFFF
##5C238B1.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408E
Deuteranopia (green-blind)
#004189
Tritanopia (blue-blind)
#533C55
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5c238b;
/* rgb */ color: rgb(92, 35, 139);
/* oklch */ color: oklch(39.7% 0.163 304.9);
Tailwind
colors: {
  custom: {
    50: '#8f64ae',
    500: '#5c238b',
    950: '#000000',
  },
}
SCSS
$custom: #5c238b;
$custom-light: #8f64ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5c238b",
  "rgb": {
    "r": 92,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 272.885,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.39679,
    "c": 0.16329,
    "h": 304.9
  },
  "luminance": 0.05341
}

Semantic roles & 50–950 ramp

primary
#5C238B
secondary
#80B852
accent
#E3458C
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5C238B

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

Preview Lab → · Contrast checker → · Palette generator →

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