#5D238D#5D238D

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

Color values

HEX#5D238D
RGBrgb(93, 35, 141)
HSLhsl(273, 60%, 35%)
HSVhsv(273, 75%, 55%)
CMYKcmyk(34%, 75.2%, 0%, 44.7%)
CIE-LABlab(27.99, 45.83, -47.80)
CIE-LCHlch(27.99, 66.22, 313.79°)
OKLaboklab(39.97% 0.0946 -0.136)
OKLCHoklch(39.97% 0.166 304.8)
XYZxyz(9.9219, 5.4524, 25.7238)
Luminance0.0545 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D238D #538D23
analogous
#28238D #5D238D #8D2388
triadic
#5D238D #8D5D23 #238D5D
tetradic
#5D238D #8D2823 #538D23 #23888D
square
#5D238D #8D2823 #538D23 #23888D
split-complementary
#5D238D #888D23 #238D28
monochromatic
#1C0B2B #3D175C #5D238D #7D2FBE #9B55D5

Accessibility & contrast

On white

10.05
#5D238D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D238D
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D238D#FFFFFF#000000##FFFFFF
##5D238D1.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004190
Deuteranopia (green-blind)
#00428B
Tritanopia (blue-blind)
#543D56
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5d238d;
/* rgb */ color: rgb(93, 35, 141);
/* oklch */ color: oklch(40.0% 0.166 304.8);
Tailwind
colors: {
  custom: {
    50: '#9064af',
    500: '#5d238d',
    950: '#000000',
  },
}
SCSS
$custom: #5d238d;
$custom-light: #9064af;
$custom-dark: #000000;
JSON
{
  "hex": "#5d238d",
  "rgb": {
    "r": 93,
    "g": 35,
    "b": 141
  },
  "hsl": {
    "h": 272.83,
    "s": 60.227,
    "l": 34.51
  },
  "oklch": {
    "l": 0.39971,
    "c": 0.16567,
    "h": 304.8
  },
  "luminance": 0.05452
}

Semantic roles & 50–950 ramp

primary
#5D238D
secondary
#81B953
accent
#E3448C
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5D238D

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

Preview Lab → · Contrast checker → · Palette generator →

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