#5D267E#5D267E

#5D267E is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.2% C 0.146 H 310.0°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#5D267E
RGBrgb(93, 38, 126)
HSLhsl(278, 54%, 32%)
HSVhsv(278, 70%, 49%)
CMYKcmyk(26.2%, 69.8%, 0%, 50.6%)
CIE-LABlab(27.35, 40.80, -39.45)
CIE-LCHlch(27.35, 56.76, 315.96°)
OKLaboklab(39.16% 0.0936 -0.1115)
OKLCHoklch(39.16% 0.146 310)
XYZxyz(8.9725, 5.2199, 20.2695)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D267E #477E26
analogous
#31267E #5D267E #7E2673
triadic
#5D267E #7E5D26 #267E5D
tetradic
#5D267E #7E3126 #477E26 #26737E
square
#5D267E #7E3126 #477E26 #26737E
split-complementary
#5D267E #737E26 #267E31
monochromatic
#180A20 #3A184F #5D267E #8034AD #9E53CB

Accessibility & contrast

On white

10.27
#5D267E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#5D267E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D267E
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D267E#FFFFFF#000000##FFFFFF
##5D267E1.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E81
Deuteranopia (green-blind)
#18417C
Tritanopia (blue-blind)
#58394F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5d267e;
/* rgb */ color: rgb(93, 38, 126);
/* oklch */ color: oklch(39.2% 0.146 310.0);
Tailwind
colors: {
  custom: {
    50: '#8e65a4',
    500: '#5d267e',
    950: '#000000',
  },
}
SCSS
$custom: #5d267e;
$custom-light: #8e65a4;
$custom-dark: #000000;
JSON
{
  "hex": "#5d267e",
  "rgb": {
    "r": 93,
    "g": 38,
    "b": 126
  },
  "hsl": {
    "h": 277.5,
    "s": 53.659,
    "l": 32.157
  },
  "oklch": {
    "l": 0.39161,
    "c": 0.14557,
    "h": 310
  },
  "luminance": 0.0522
}

Semantic roles & 50–950 ramp

primary
#5D267E
secondary
#74B050
accent
#DD4B82
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D060F
muted
#7E7A7F

Preview Lab

Preview with #5D267E

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

Preview Lab → · Contrast checker → · Palette generator →

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