#5D228F#5D228F

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

Color values

HEX#5D228F
RGBrgb(93, 34, 143)
HSLhsl(272, 62%, 35%)
HSVhsv(272, 76%, 56%)
CMYKcmyk(35%, 76.2%, 0%, 43.9%)
CIE-LABlab(27.99, 46.76, -49.03)
CIE-LCHlch(27.99, 67.75, 313.64°)
OKLaboklab(40.03% 0.0951 -0.1396)
OKLCHoklch(40.03% 0.169 304.3)
XYZxyz(10.0430, 5.4544, 26.5050)
Luminance0.0545 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D228F #548F22
analogous
#26228F #5D228F #8F228B
triadic
#5D228F #8F5D22 #228F5D
tetradic
#5D228F #8F2622 #548F22 #228B8F
square
#5D228F #8F2622 #548F22 #228B8F
split-complementary
#5D228F #8B8F22 #228F26
monochromatic
#1D0A2C #3D165E #5D228F #7D2EC0 #9B55D7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5D228F#FFFFFF#000000##FFFFFF
##5D228F1.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)
#533D57
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5d228f;
/* rgb */ color: rgb(93, 34, 143);
/* oklch */ color: oklch(40.0% 0.169 304.3);
Tailwind
colors: {
  custom: {
    50: '#9063b1',
    500: '#5d228f',
    950: '#000000',
  },
}
SCSS
$custom: #5d228f;
$custom-light: #9063b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5d228f",
  "rgb": {
    "r": 93,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 272.477,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.40026,
    "c": 0.16895,
    "h": 304.3
  },
  "luminance": 0.05454
}

Semantic roles & 50–950 ramp

primary
#5D228F
secondary
#82BA52
accent
#E5438D
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5D228F

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

Preview Lab → · Contrast checker → · Palette generator →

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