#5C238C#5C238C

#5C238C is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.8% C 0.164 H 304.6°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#5C238C
RGBrgb(92, 35, 140)
HSLhsl(273, 60%, 34%)
HSVhsv(273, 75%, 55%)
CMYKcmyk(34.3%, 75%, 0%, 45.1%)
CIE-LABlab(27.77, 45.39, -47.54)
CIE-LCHlch(27.77, 65.73, 313.67°)
OKLaboklab(39.76% 0.0933 -0.1353)
OKLCHoklch(39.76% 0.164 304.6)
XYZxyz(9.7472, 5.3709, 25.3290)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C238C #538C23
analogous
#27238C #5C238C #8C2388
triadic
#5C238C #8C5C23 #238C5C
tetradic
#5C238C #8C2723 #538C23 #23888C
square
#5C238C #8C2723 #538C23 #23888C
split-complementary
#5C238C #888C23 #238C27
monochromatic
#1C0B2A #3C175B #5C238C #7C2FBD #9A55D4

Accessibility & contrast

On white

10.12
#5C238C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C238C
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C238C#FFFFFF#000000##FFFFFF
##5C238C1.0010.122.0710.12
#FFFFFF10.121.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408F
Deuteranopia (green-blind)
#00428A
Tritanopia (blue-blind)
#533D55
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5c238c;
/* rgb */ color: rgb(92, 35, 140);
/* oklch */ color: oklch(39.8% 0.164 304.6);
Tailwind
colors: {
  custom: {
    50: '#8f64ae',
    500: '#5c238c',
    950: '#000000',
  },
}
SCSS
$custom: #5c238c;
$custom-light: #8f64ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5c238c",
  "rgb": {
    "r": 92,
    "g": 35,
    "b": 140
  },
  "hsl": {
    "h": 272.571,
    "s": 60,
    "l": 34.314
  },
  "oklch": {
    "l": 0.3976,
    "c": 0.16436,
    "h": 304.6
  },
  "luminance": 0.05371
}

Semantic roles & 50–950 ramp

primary
#5C238C
secondary
#81B852
accent
#E3458D
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5C238C

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

Preview Lab → · Contrast checker → · Palette generator →

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