#5C237D#5C237D

#5C237D is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.6% C 0.148 H 310.2°. Best body text is #FFFFFF at 10.54:1 contrast (WCAG AA passes).

Color values

HEX#5C237D
RGBrgb(92, 35, 125)
HSLhsl(278, 56%, 31%)
HSVhsv(278, 72%, 49%)
CMYKcmyk(26.4%, 72%, 0%, 51%)
CIE-LABlab(26.62, 41.78, -40.02)
CIE-LCHlch(26.62, 57.86, 316.24°)
OKLaboklab(38.58% 0.0958 -0.1132)
OKLCHoklch(38.58% 0.148 310.2)
XYZxyz(8.7156, 4.9582, 19.8960)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C237D #447D23
analogous
#2F237D #5C237D #7D2371
triadic
#5C237D #7D5C23 #237D5C
tetradic
#5C237D #7D2F23 #447D23 #23717D
square
#5C237D #7D2F23 #447D23 #23717D
split-complementary
#5C237D #717D23 #237D2F
monochromatic
#16081D #39164D #5C237D #7F30AD #9E4DCD

Accessibility & contrast

On white

10.54
#5C237D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C237D
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C237D#FFFFFF#000000##FFFFFF
##5C237D1.0010.541.9910.54
#FFFFFF10.541.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C80
Deuteranopia (green-blind)
#14407B
Tritanopia (blue-blind)
#57364D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5c237d;
/* rgb */ color: rgb(92, 35, 125);
/* oklch */ color: oklch(38.6% 0.148 310.2);
Tailwind
colors: {
  custom: {
    50: '#8e63a3',
    500: '#5c237d',
    950: '#000000',
  },
}
SCSS
$custom: #5c237d;
$custom-light: #8e63a3;
$custom-dark: #000000;
JSON
{
  "hex": "#5c237d",
  "rgb": {
    "r": 92,
    "g": 35,
    "b": 125
  },
  "hsl": {
    "h": 278,
    "s": 56.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.3858,
    "c": 0.14827,
    "h": 310.2
  },
  "luminance": 0.04958
}

Semantic roles & 50–950 ramp

primary
#5C237D
secondary
#71AF4C
accent
#E04880
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0D050F
muted
#7D7A7F

Preview Lab

Preview with #5C237D

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

Preview Lab → · Contrast checker → · Palette generator →

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