#5E267B#5E267B

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

Color values

HEX#5E267B
RGBrgb(94, 38, 123)
HSLhsl(280, 53%, 32%)
HSVhsv(280, 69%, 48%)
CMYKcmyk(23.6%, 69.1%, 0%, 51.8%)
CIE-LABlab(27.29, 40.33, -37.66)
CIE-LCHlch(27.29, 55.18, 316.96°)
OKLaboklab(39.08% 0.0952 -0.1062)
OKLCHoklch(39.08% 0.143 311.9)
XYZxyz(8.8837, 5.1962, 19.2700)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E267B #437B26
analogous
#34267B #5E267B #7B266E
triadic
#5E267B #7B5E26 #267B5E
tetradic
#5E267B #7B3426 #437B26 #266E7B
square
#5E267B #7B3426 #437B26 #266E7B
split-complementary
#5E267B #6E7B26 #267B34
monochromatic
#17091D #3A184C #5E267B #8234AA #A152CA

Accessibility & contrast

On white

10.30
#5E267B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E267B
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E267B#FFFFFF#000000##FFFFFF
##5E267B1.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7E
Deuteranopia (green-blind)
#1E4279
Tritanopia (blue-blind)
#5B374D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5e267b;
/* rgb */ color: rgb(94, 38, 123);
/* oklch */ color: oklch(39.1% 0.143 311.9);
Tailwind
colors: {
  custom: {
    50: '#8f65a2',
    500: '#5e267b',
    950: '#000000',
  },
}
SCSS
$custom: #5e267b;
$custom-light: #8f65a2;
$custom-dark: #000000;
JSON
{
  "hex": "#5e267b",
  "rgb": {
    "r": 94,
    "g": 38,
    "b": 123
  },
  "hsl": {
    "h": 279.529,
    "s": 52.795,
    "l": 31.569
  },
  "oklch": {
    "l": 0.39077,
    "c": 0.14265,
    "h": 311.9
  },
  "luminance": 0.05196
}

Semantic roles & 50–950 ramp

primary
#5E267B
secondary
#70AD50
accent
#DC4C7D
background
#F9F6FA
surface
#F1EBF3
border
#CBC6CD
text
#0D060F
muted
#7E7A7F

Preview Lab

Preview with #5E267B

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

Preview Lab → · Contrast checker → · Palette generator →

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