#5D227F#5D227F

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

Color values

HEX#5D227F
RGBrgb(93, 34, 127)
HSLhsl(278, 58%, 32%)
HSVhsv(278, 73%, 50%)
CMYKcmyk(26.8%, 73.2%, 0%, 50.2%)
CIE-LABlab(26.75, 42.94, -41.06)
CIE-LCHlch(26.75, 59.41, 316.28°)
OKLaboklab(38.75% 0.0981 -0.1162)
OKLCHoklch(38.75% 0.152 310.2)
XYZxyz(8.9162, 5.0037, 20.5707)
Luminance0.0500 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D227F #447F22
analogous
#2F227F #5D227F #7F2273
triadic
#5D227F #7F5D22 #227F5D
tetradic
#5D227F #7F2F22 #447F22 #22737F
square
#5D227F #7F2F22 #447F22 #22737F
split-complementary
#5D227F #737F22 #227F2F
monochromatic
#16081E #3A154F #5D227F #802FAF #9F4CCF

Accessibility & contrast

On white

10.50
#5D227F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#5D227F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D227F
10.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D227F#FFFFFF#000000##FFFFFF
##5D227F1.0010.502.0010.50
#FFFFFF10.501.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D82
Deuteranopia (green-blind)
#11407D
Tritanopia (blue-blind)
#58374E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5d227f;
/* rgb */ color: rgb(93, 34, 127);
/* oklch */ color: oklch(38.8% 0.152 310.2);
Tailwind
colors: {
  custom: {
    50: '#8f63a5',
    500: '#5d227f',
    950: '#000000',
  },
}
SCSS
$custom: #5d227f;
$custom-light: #8f63a5;
$custom-dark: #000000;
JSON
{
  "hex": "#5d227f",
  "rgb": {
    "r": 93,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 278.065,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.3875,
    "c": 0.15204,
    "h": 310.2
  },
  "luminance": 0.05004
}

Semantic roles & 50–950 ramp

primary
#5D227F
secondary
#71B24B
accent
#E1477F
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D050F
muted
#7E7A7F

Preview Lab

Preview with #5D227F

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

Preview Lab → · Contrast checker → · Palette generator →

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