#5C237C#5C237C

#5C237C is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.5% C 0.147 H 310.7°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#5C237C
RGBrgb(92, 35, 124)
HSLhsl(278, 56%, 31%)
HSVhsv(278, 72%, 49%)
CMYKcmyk(25.8%, 71.8%, 0%, 51.4%)
CIE-LABlab(26.54, 41.55, -39.50)
CIE-LCHlch(26.54, 57.33, 316.45°)
OKLaboklab(38.51% 0.0959 -0.1117)
OKLCHoklch(38.51% 0.147 310.7)
XYZxyz(8.6521, 4.9328, 19.5612)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C237C #437C23
analogous
#2F237C #5C237C #7C236F
triadic
#5C237C #7C5C23 #237C5C
tetradic
#5C237C #7C2F23 #437C23 #236F7C
square
#5C237C #7C2F23 #437C23 #236F7C
split-complementary
#5C237C #6F7C23 #237C2F
monochromatic
#15081D #39164C #5C237C #7F30AC #9F4DCD

Accessibility & contrast

On white

10.57
#5C237C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#5C237C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C237C
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C237C#FFFFFF#000000##FFFFFF
##5C237C1.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7F
Deuteranopia (green-blind)
#16407A
Tritanopia (blue-blind)
#58364D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5c237c;
/* rgb */ color: rgb(92, 35, 124);
/* oklch */ color: oklch(38.5% 0.147 310.7);
Tailwind
colors: {
  custom: {
    50: '#8e63a2',
    500: '#5c237c',
    950: '#000000',
  },
}
SCSS
$custom: #5c237c;
$custom-light: #8e63a2;
$custom-dark: #000000;
JSON
{
  "hex": "#5c237c",
  "rgb": {
    "r": 92,
    "g": 35,
    "b": 124
  },
  "hsl": {
    "h": 278.427,
    "s": 55.975,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38505,
    "c": 0.1472,
    "h": 310.7
  },
  "luminance": 0.04933
}

Semantic roles & 50–950 ramp

primary
#5C237C
secondary
#70AF4C
accent
#DF497F
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0D050F
muted
#7D7A7F

Preview Lab

Preview with #5C237C

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

Preview Lab → · Contrast checker → · Palette generator →

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