#5C237B#5C237B

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

Color values

HEX#5C237B
RGBrgb(92, 35, 123)
HSLhsl(279, 56%, 31%)
HSVhsv(279, 72%, 48%)
CMYKcmyk(25.2%, 71.5%, 0%, 51.8%)
CIE-LABlab(26.47, 41.31, -38.99)
CIE-LCHlch(26.47, 56.81, 316.66°)
OKLaboklab(38.43% 0.096 -0.1101)
OKLCHoklch(38.43% 0.146 311.1)
XYZxyz(8.5891, 4.9076, 19.2299)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C237B #427B23
analogous
#30237B #5C237B #7B236E
triadic
#5C237B #7B5C23 #237B5C
tetradic
#5C237B #7B3023 #427B23 #236E7B
square
#5C237B #7B3023 #427B23 #236E7B
split-complementary
#5C237B #6E7B23 #237B30
monochromatic
#15081C #38154B #5C237B #8031AB #9F4CCC

Accessibility & contrast

On white

10.60
#5C237B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C237B
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C237B#FFFFFF#000000##FFFFFF
##5C237B1.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7E
Deuteranopia (green-blind)
#174079
Tritanopia (blue-blind)
#58364C
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5c237b;
/* rgb */ color: rgb(92, 35, 123);
/* oklch */ color: oklch(38.4% 0.146 311.1);
Tailwind
colors: {
  custom: {
    50: '#8d63a2',
    500: '#5c237b',
    950: '#000000',
  },
}
SCSS
$custom: #5c237b;
$custom-light: #8d63a2;
$custom-dark: #000000;
JSON
{
  "hex": "#5c237b",
  "rgb": {
    "r": 92,
    "g": 35,
    "b": 123
  },
  "hsl": {
    "h": 278.864,
    "s": 55.696,
    "l": 30.98
  },
  "oklch": {
    "l": 0.3843,
    "c": 0.14613,
    "h": 311.1
  },
  "luminance": 0.04907
}

Semantic roles & 50–950 ramp

primary
#5C237B
secondary
#6FAE4C
accent
#DF497E
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0D050F
muted
#7D7A7F

Preview Lab

Preview with #5C237B

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

Preview Lab → · Contrast checker → · Palette generator →

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