#5D238C#5D238C

#5D238C is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.9% C 0.165 H 305.2°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#5D238C
RGBrgb(93, 35, 140)
HSLhsl(273, 60%, 34%)
HSVhsv(273, 75%, 55%)
CMYKcmyk(33.6%, 75%, 0%, 45.1%)
CIE-LABlab(27.91, 45.59, -47.31)
CIE-LCHlch(27.91, 65.70, 313.94°)
OKLaboklab(39.89% 0.0948 -0.1346)
OKLCHoklch(39.89% 0.165 305.2)
XYZxyz(9.8478, 5.4227, 25.3338)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D238C #528C23
analogous
#29238C #5D238C #8C2387
triadic
#5D238C #8C5D23 #238C5D
tetradic
#5D238C #8C2923 #528C23 #23878C
square
#5D238C #8C2923 #528C23 #23878C
split-complementary
#5D238C #878C23 #238C29
monochromatic
#1C0B2A #3C175B #5D238C #7E2FBD #9B55D4

Accessibility & contrast

On white

10.07
#5D238C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#5D238C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D238C
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D238C#FFFFFF#000000##FFFFFF
##5D238C1.0010.072.0810.07
#FFFFFF10.071.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408F
Deuteranopia (green-blind)
#00428A
Tritanopia (blue-blind)
#543C55
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5d238c;
/* rgb */ color: rgb(93, 35, 140);
/* oklch */ color: oklch(39.9% 0.165 305.2);
Tailwind
colors: {
  custom: {
    50: '#9064ae',
    500: '#5d238c',
    950: '#000000',
  },
}
SCSS
$custom: #5d238c;
$custom-light: #9064ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5d238c",
  "rgb": {
    "r": 93,
    "g": 35,
    "b": 140
  },
  "hsl": {
    "h": 273.143,
    "s": 60,
    "l": 34.314
  },
  "oklch": {
    "l": 0.3989,
    "c": 0.1646,
    "h": 305.2
  },
  "luminance": 0.05423
}

Semantic roles & 50–950 ramp

primary
#5D238C
secondary
#80B852
accent
#E3458C
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5D238C

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

Preview Lab → · Contrast checker → · Palette generator →

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