#5D267C#5D267C

#5D267C is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.0% C 0.143 H 310.8°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#5D267C
RGBrgb(93, 38, 124)
HSLhsl(278, 53%, 32%)
HSVhsv(278, 69%, 49%)
CMYKcmyk(25%, 69.4%, 0%, 51.4%)
CIE-LABlab(27.21, 40.33, -38.42)
CIE-LCHlch(27.21, 55.70, 316.39°)
OKLaboklab(39.01% 0.0938 -0.1085)
OKLCHoklch(39.01% 0.143 310.8)
XYZxyz(8.8447, 5.1688, 19.5966)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D267C #457C26
analogous
#32267C #5D267C #7C2670
triadic
#5D267C #7C5D26 #267C5D
tetradic
#5D267C #7C3226 #457C26 #26707C
square
#5D267C #7C3226 #457C26 #26707C
split-complementary
#5D267C #707C26 #267C32
monochromatic
#17091E #3A184D #5D267C #8034AB #9F52CA

Accessibility & contrast

On white

10.33
#5D267C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#5D267C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D267C
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D267C#FFFFFF#000000##FFFFFF
##5D267C1.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7F
Deuteranopia (green-blind)
#1B417A
Tritanopia (blue-blind)
#59384D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5d267c;
/* rgb */ color: rgb(93, 38, 124);
/* oklch */ color: oklch(39.0% 0.143 310.8);
Tailwind
colors: {
  custom: {
    50: '#8e65a2',
    500: '#5d267c',
    950: '#000000',
  },
}
SCSS
$custom: #5d267c;
$custom-light: #8e65a2;
$custom-dark: #000000;
JSON
{
  "hex": "#5d267c",
  "rgb": {
    "r": 93,
    "g": 38,
    "b": 124
  },
  "hsl": {
    "h": 278.372,
    "s": 53.086,
    "l": 31.765
  },
  "oklch": {
    "l": 0.39014,
    "c": 0.14338,
    "h": 310.8
  },
  "luminance": 0.05169
}

Semantic roles & 50–950 ramp

primary
#5D267C
secondary
#72AE50
accent
#DC4B80
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D060F
muted
#7E7A7F

Preview Lab

Preview with #5D267C

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

Preview Lab → · Contrast checker → · Palette generator →

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