#5C237F#5C237F

#5C237F is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.7% C 0.150 H 309.4°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#5C237F
RGBrgb(92, 35, 127)
HSLhsl(277, 57%, 32%)
HSVhsv(277, 72%, 50%)
CMYKcmyk(27.6%, 72.4%, 0%, 50.2%)
CIE-LABlab(26.76, 42.26, -41.04)
CIE-LCHlch(26.76, 58.91, 315.84°)
OKLaboklab(38.73% 0.0955 -0.1162)
OKLCHoklch(38.73% 0.15 309.4)
XYZxyz(8.8447, 5.0099, 20.5756)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C237F #467F23
analogous
#2E237F #5C237F #7F2374
triadic
#5C237F #7F5C23 #237F5C
tetradic
#5C237F #7F2E23 #467F23 #23747F
square
#5C237F #7F2E23 #467F23 #23747F
split-complementary
#5C237F #747F23 #237F2E
monochromatic
#16091F #39164F #5C237F #7F30AF #9E4ECE

Accessibility & contrast

On white

10.49
#5C237F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#5C237F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C237F
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C237F#FFFFFF#000000##FFFFFF
##5C237F1.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D82
Deuteranopia (green-blind)
#11407D
Tritanopia (blue-blind)
#57374E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5c237f;
/* rgb */ color: rgb(92, 35, 127);
/* oklch */ color: oklch(38.7% 0.150 309.4);
Tailwind
colors: {
  custom: {
    50: '#8e63a5',
    500: '#5c237f',
    950: '#000000',
  },
}
SCSS
$custom: #5c237f;
$custom-light: #8e63a5;
$custom-dark: #000000;
JSON
{
  "hex": "#5c237f",
  "rgb": {
    "r": 92,
    "g": 35,
    "b": 127
  },
  "hsl": {
    "h": 277.174,
    "s": 56.79,
    "l": 31.765
  },
  "oklch": {
    "l": 0.38732,
    "c": 0.15041,
    "h": 309.4
  },
  "luminance": 0.0501
}

Semantic roles & 50–950 ramp

primary
#5C237F
secondary
#73B14C
accent
#E04882
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D050F
muted
#7E7A7F

Preview Lab

Preview with #5C237F

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

Preview Lab → · Contrast checker → · Palette generator →

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