#5D228B#5D228B

#5D228B is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.7% C 0.165 H 305.6°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#5D228B
RGBrgb(93, 34, 139)
HSLhsl(274, 61%, 34%)
HSVhsv(274, 76%, 55%)
CMYKcmyk(33.1%, 75.5%, 0%, 45.5%)
CIE-LABlab(27.67, 45.79, -47.07)
CIE-LCHlch(27.67, 65.67, 314.21°)
OKLaboklab(39.7% 0.096 -0.1339)
OKLCHoklch(39.7% 0.165 305.6)
XYZxyz(9.7454, 5.3354, 24.9375)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D228B #508B22
analogous
#28228B #5D228B #8B2285
triadic
#5D228B #8B5D22 #228B5D
tetradic
#5D228B #8B2822 #508B22 #22858B
square
#5D228B #8B2822 #508B22 #22858B
split-complementary
#5D228B #858B22 #228B28
monochromatic
#1B0A29 #3C165A #5D228B #7E2EBC #9C53D5

Accessibility & contrast

On white

10.16
#5D228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#5D228B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D228B
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D228B#FFFFFF#000000##FFFFFF
##5D228B1.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408E
Deuteranopia (green-blind)
#004189
Tritanopia (blue-blind)
#553B55
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5d228b;
/* rgb */ color: rgb(93, 34, 139);
/* oklch */ color: oklch(39.7% 0.165 305.6);
Tailwind
colors: {
  custom: {
    50: '#8f63ae',
    500: '#5d228b',
    950: '#000000',
  },
}
SCSS
$custom: #5d228b;
$custom-light: #8f63ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5d228b",
  "rgb": {
    "r": 93,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 273.714,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39697,
    "c": 0.16472,
    "h": 305.6
  },
  "luminance": 0.05335
}

Semantic roles & 50–950 ramp

primary
#5D228B
secondary
#7EB850
accent
#E4448A
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5D228B

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

Preview Lab → · Contrast checker → · Palette generator →

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