#5C239F#5C239F

#5C239F is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.4% C 0.185 H 298.7°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#5C239F
RGBrgb(92, 35, 159)
HSLhsl(268, 64%, 38%)
HSVhsv(268, 78%, 62%)
CMYKcmyk(42.1%, 78%, 0%, 37.6%)
CIE-LABlab(29.36, 50.12, -56.61)
CIE-LCHlch(29.36, 75.61, 311.52°)
OKLaboklab(41.38% 0.0887 -0.1619)
OKLCHoklch(41.38% 0.185 298.7)
XYZxyz(11.2711, 5.9804, 33.3547)
Luminance0.0598 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C239F #669F23
analogous
#23289F #5C239F #9A239F
triadic
#5C239F #9F5C23 #239F5C
tetradic
#5C239F #9F2328 #669F23 #239F9A
square
#5C239F #9F2328 #669F23 #239F9A
split-complementary
#5C239F #9F9A23 #289F23
monochromatic
#220D3B #3F186D #5C239F #792ED1 #9960DC

Accessibility & contrast

On white

9.56
#5C239F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5C239F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C239F
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C239F#FFFFFF#000000##FFFFFF
##5C239F1.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A2
Deuteranopia (green-blind)
#00449D
Tritanopia (blue-blind)
#4B4460
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5c239f;
/* rgb */ color: rgb(92, 35, 159);
/* oklch */ color: oklch(41.4% 0.185 298.7);
Tailwind
colors: {
  custom: {
    50: '#9165bc',
    500: '#5c239f',
    950: '#000000',
  },
}
SCSS
$custom: #5c239f;
$custom-light: #9165bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5c239f",
  "rgb": {
    "r": 92,
    "g": 35,
    "b": 159
  },
  "hsl": {
    "h": 267.581,
    "s": 63.918,
    "l": 38.039
  },
  "oklch": {
    "l": 0.4138,
    "c": 0.18466,
    "h": 298.7
  },
  "luminance": 0.05981
}

Semantic roles & 50–950 ramp

primary
#5C239F
secondary
#93C15D
accent
#E7419B
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5C239F

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

Preview Lab → · Contrast checker → · Palette generator →

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