#5C239B#5C239B

#5C239B is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.0% C 0.180 H 299.9°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#5C239B
RGBrgb(92, 35, 155)
HSLhsl(269, 63%, 37%)
HSVhsv(269, 77%, 61%)
CMYKcmyk(40.6%, 77.4%, 0%, 39.2%)
CIE-LABlab(29.01, 49.11, -54.74)
CIE-LCHlch(29.01, 73.54, 311.90°)
OKLaboklab(41.03% 0.0898 -0.1564)
OKLCHoklch(41.03% 0.18 299.9)
XYZxyz(10.9296, 5.8438, 31.5561)
Luminance0.0584 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C239B #629B23
analogous
#23269B #5C239B #98239B
triadic
#5C239B #9B5C23 #239B5C
tetradic
#5C239B #9B2326 #629B23 #239B98
square
#5C239B #9B2326 #629B23 #239B98
split-complementary
#5C239B #9B9823 #269B23
monochromatic
#210C37 #3E1869 #5C239B #7A2ECD #995EDB

Accessibility & contrast

On white

9.68
#5C239B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#5C239B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C239B
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C239B#FFFFFF#000000##FFFFFF
##5C239B1.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449E
Deuteranopia (green-blind)
#004399
Tritanopia (blue-blind)
#4D435E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5c239b;
/* rgb */ color: rgb(92, 35, 155);
/* oklch */ color: oklch(41.0% 0.180 299.9);
Tailwind
colors: {
  custom: {
    50: '#9064b9',
    500: '#5c239b',
    950: '#000000',
  },
}
SCSS
$custom: #5c239b;
$custom-light: #9064b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5c239b",
  "rgb": {
    "r": 92,
    "g": 35,
    "b": 155
  },
  "hsl": {
    "h": 268.5,
    "s": 63.158,
    "l": 37.255
  },
  "oklch": {
    "l": 0.41028,
    "c": 0.1804,
    "h": 299.9
  },
  "luminance": 0.05844
}

Semantic roles & 50–950 ramp

primary
#5C239B
secondary
#8FBF5A
accent
#E64298
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5C239B

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

Preview Lab → · Contrast checker → · Palette generator →

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