#5C238F#5C238F

#5C238F is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.0% C 0.168 H 303.6°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#5C238F
RGBrgb(92, 35, 143)
HSLhsl(272, 61%, 35%)
HSVhsv(272, 76%, 56%)
CMYKcmyk(35.7%, 75.5%, 0%, 43.9%)
CIE-LABlab(28.01, 46.13, -49.01)
CIE-LCHlch(28.01, 67.30, 313.26°)
OKLaboklab(40.01% 0.0927 -0.1396)
OKLCHoklch(40.01% 0.168 303.6)
XYZxyz(9.9714, 5.4606, 26.5099)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C238F #568F23
analogous
#26238F #5C238F #8F238C
triadic
#5C238F #8F5C23 #238F5C
tetradic
#5C238F #8F2623 #568F23 #238C8F
square
#5C238F #8F2623 #568F23 #238C8F
split-complementary
#5C238F #8C8F23 #238F26
monochromatic
#1D0B2D #3C175E #5C238F #7C2FC0 #9A57D6

Accessibility & contrast

On white

10.04
#5C238F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#5C238F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C238F
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C238F#FFFFFF#000000##FFFFFF
##5C238F1.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004192
Deuteranopia (green-blind)
#00428D
Tritanopia (blue-blind)
#523E57
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5c238f;
/* rgb */ color: rgb(92, 35, 143);
/* oklch */ color: oklch(40.0% 0.168 303.6);
Tailwind
colors: {
  custom: {
    50: '#8f64b1',
    500: '#5c238f',
    950: '#000000',
  },
}
SCSS
$custom: #5c238f;
$custom-light: #8f64b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5c238f",
  "rgb": {
    "r": 92,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 271.667,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.40007,
    "c": 0.16758,
    "h": 303.6
  },
  "luminance": 0.05461
}

Semantic roles & 50–950 ramp

primary
#5C238F
secondary
#84BA54
accent
#E4448F
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5C238F

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

Preview Lab → · Contrast checker → · Palette generator →

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