#5E267D#5E267D

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

Color values

HEX#5E267D
RGBrgb(94, 38, 125)
HSLhsl(279, 53%, 32%)
HSVhsv(279, 70%, 49%)
CMYKcmyk(24.8%, 69.6%, 0%, 51%)
CIE-LABlab(27.43, 40.80, -38.69)
CIE-LCHlch(27.43, 56.23, 316.52°)
OKLaboklab(39.22% 0.0951 -0.1092)
OKLCHoklch(39.22% 0.145 311)
XYZxyz(9.0102, 5.2468, 19.9361)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E267D #457D26
analogous
#33267D #5E267D #7D2671
triadic
#5E267D #7D5E26 #267D5E
tetradic
#5E267D #7D3326 #457D26 #26717D
square
#5E267D #7D3326 #457D26 #26717D
split-complementary
#5E267D #717D26 #267D33
monochromatic
#17091F #3B184E #5E267D #8134AC #A053CB

Accessibility & contrast

On white

10.25
#5E267D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#5E267D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E267D
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E267D#FFFFFF#000000##FFFFFF
##5E267D1.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E80
Deuteranopia (green-blind)
#1B427B
Tritanopia (blue-blind)
#5A384E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5e267d;
/* rgb */ color: rgb(94, 38, 125);
/* oklch */ color: oklch(39.2% 0.145 311.0);
Tailwind
colors: {
  custom: {
    50: '#8f65a3',
    500: '#5e267d',
    950: '#000000',
  },
}
SCSS
$custom: #5e267d;
$custom-light: #8f65a3;
$custom-dark: #000000;
JSON
{
  "hex": "#5e267d",
  "rgb": {
    "r": 94,
    "g": 38,
    "b": 125
  },
  "hsl": {
    "h": 278.621,
    "s": 53.374,
    "l": 31.961
  },
  "oklch": {
    "l": 0.39222,
    "c": 0.14482,
    "h": 311
  },
  "luminance": 0.05247
}

Semantic roles & 50–950 ramp

primary
#5E267D
secondary
#72AF50
accent
#DD4B7F
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D060F
muted
#7E7A7F

Preview Lab

Preview with #5E267D

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

Preview Lab → · Contrast checker → · Palette generator →

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