#5C239E#5C239E

#5C239E is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.3% C 0.184 H 299.0°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#5C239E
RGBrgb(92, 35, 158)
HSLhsl(268, 64%, 38%)
HSVhsv(268, 78%, 62%)
CMYKcmyk(41.8%, 77.8%, 0%, 38%)
CIE-LABlab(29.28, 49.87, -56.15)
CIE-LCHlch(29.28, 75.09, 311.61°)
OKLaboklab(41.29% 0.089 -0.1606)
OKLCHoklch(41.29% 0.184 299)
XYZxyz(11.1846, 5.9458, 32.8995)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C239E #659E23
analogous
#23279E #5C239E #9A239E
triadic
#5C239E #9E5C23 #239E5C
tetradic
#5C239E #9E2327 #659E23 #239E9A
square
#5C239E #9E2327 #659E23 #239E9A
split-complementary
#5C239E #9E9A23 #279E23
monochromatic
#220D3A #3F186C #5C239E #792ED0 #9960DC

Accessibility & contrast

On white

9.59
#5C239E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5C239E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C239E
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C239E#FFFFFF#000000##FFFFFF
##5C239E1.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A1
Deuteranopia (green-blind)
#00449C
Tritanopia (blue-blind)
#4C4460
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5c239e;
/* rgb */ color: rgb(92, 35, 158);
/* oklch */ color: oklch(41.3% 0.184 299.0);
Tailwind
colors: {
  custom: {
    50: '#9165bc',
    500: '#5c239e',
    950: '#000000',
  },
}
SCSS
$custom: #5c239e;
$custom-light: #9165bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5c239e",
  "rgb": {
    "r": 92,
    "g": 35,
    "b": 158
  },
  "hsl": {
    "h": 267.805,
    "s": 63.731,
    "l": 37.843
  },
  "oklch": {
    "l": 0.41291,
    "c": 0.18359,
    "h": 299
  },
  "luminance": 0.05946
}

Semantic roles & 50–950 ramp

primary
#5C239E
secondary
#92C15C
accent
#E7419A
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5C239E

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

Preview Lab → · Contrast checker → · Palette generator →

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