#5C237A#5C237A

#5C237A is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.4% C 0.145 H 311.5°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#5C237A
RGBrgb(92, 35, 122)
HSLhsl(279, 55%, 31%)
HSVhsv(279, 71%, 48%)
CMYKcmyk(24.6%, 71.3%, 0%, 52.2%)
CIE-LABlab(26.40, 41.08, -38.47)
CIE-LCHlch(26.40, 56.28, 316.88°)
OKLaboklab(38.35% 0.0961 -0.1086)
OKLCHoklch(38.35% 0.145 311.5)
XYZxyz(8.5269, 4.8827, 18.9019)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C237A #417A23
analogous
#30237A #5C237A #7A236C
triadic
#5C237A #7A5C23 #237A5C
tetradic
#5C237A #7A3023 #417A23 #236C7A
square
#5C237A #7A3023 #417A23 #236C7A
split-complementary
#5C237A #6C7A23 #237A30
monochromatic
#14081B #38154A #5C237A #8031AA #A04CCC

Accessibility & contrast

On white

10.62
#5C237A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#5C237A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C237A
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C237A#FFFFFF#000000##FFFFFF
##5C237A1.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7D
Deuteranopia (green-blind)
#184078
Tritanopia (blue-blind)
#58354B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5c237a;
/* rgb */ color: rgb(92, 35, 122);
/* oklch */ color: oklch(38.4% 0.145 311.5);
Tailwind
colors: {
  custom: {
    50: '#8d63a1',
    500: '#5c237a',
    950: '#000000',
  },
}
SCSS
$custom: #5c237a;
$custom-light: #8d63a1;
$custom-dark: #000000;
JSON
{
  "hex": "#5c237a",
  "rgb": {
    "r": 92,
    "g": 35,
    "b": 122
  },
  "hsl": {
    "h": 279.31,
    "s": 55.414,
    "l": 30.784
  },
  "oklch": {
    "l": 0.38355,
    "c": 0.14506,
    "h": 311.5
  },
  "luminance": 0.04883
}

Semantic roles & 50–950 ramp

primary
#5C237A
secondary
#6DAD4C
accent
#DF497D
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0D050F
muted
#7D7A7F

Preview Lab

Preview with #5C237A

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

Preview Lab → · Contrast checker → · Palette generator →

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