#5D267B#5D267B

#5D267B is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.9% C 0.142 H 311.3°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#5D267B
RGBrgb(93, 38, 123)
HSLhsl(279, 53%, 32%)
HSVhsv(279, 69%, 48%)
CMYKcmyk(24.4%, 69.1%, 0%, 51.8%)
CIE-LABlab(27.14, 40.09, -37.90)
CIE-LCHlch(27.14, 55.17, 316.61°)
OKLaboklab(38.94% 0.0939 -0.1069)
OKLCHoklch(38.94% 0.142 311.3)
XYZxyz(8.7818, 5.1437, 19.2653)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D267B #447B26
analogous
#33267B #5D267B #7B266F
triadic
#5D267B #7B5D26 #267B5D
tetradic
#5D267B #7B3326 #447B26 #266F7B
square
#5D267B #7B3326 #447B26 #266F7B
split-complementary
#5D267B #6F7B26 #267B33
monochromatic
#16091D #3A184C #5D267B #8034AA #9F52CA

Accessibility & contrast

On white

10.35
#5D267B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D267B
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D267B#FFFFFF#000000##FFFFFF
##5D267B1.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7E
Deuteranopia (green-blind)
#1C4179
Tritanopia (blue-blind)
#59374D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5d267b;
/* rgb */ color: rgb(93, 38, 123);
/* oklch */ color: oklch(38.9% 0.142 311.3);
Tailwind
colors: {
  custom: {
    50: '#8e65a2',
    500: '#5d267b',
    950: '#000000',
  },
}
SCSS
$custom: #5d267b;
$custom-light: #8e65a2;
$custom-dark: #000000;
JSON
{
  "hex": "#5d267b",
  "rgb": {
    "r": 93,
    "g": 38,
    "b": 123
  },
  "hsl": {
    "h": 278.824,
    "s": 52.795,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38941,
    "c": 0.14229,
    "h": 311.3
  },
  "luminance": 0.05143
}

Semantic roles & 50–950 ramp

primary
#5D267B
secondary
#71AD50
accent
#DC4C7F
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0D060F
muted
#7D7A7F

Preview Lab

Preview with #5D267B

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

Preview Lab → · Contrast checker → · Palette generator →

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