#5E267C#5E267C

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

Color values

HEX#5E267C
RGBrgb(94, 38, 124)
HSLhsl(279, 53%, 32%)
HSVhsv(279, 69%, 49%)
CMYKcmyk(24.2%, 69.4%, 0%, 51.4%)
CIE-LABlab(27.36, 40.56, -38.18)
CIE-LCHlch(27.36, 55.70, 316.74°)
OKLaboklab(39.15% 0.0952 -0.1077)
OKLCHoklch(39.15% 0.144 311.5)
XYZxyz(8.9466, 5.2214, 19.6014)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E267C #447C26
analogous
#33267C #5E267C #7C266F
triadic
#5E267C #7C5E26 #267C5E
tetradic
#5E267C #7C3326 #447C26 #266F7C
square
#5E267C #7C3326 #447C26 #266F7C
split-complementary
#5E267C #6F7C26 #267C33
monochromatic
#17091E #3A184D #5E267C #8234AB #A052CA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5E267C#FFFFFF#000000##FFFFFF
##5E267C1.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)
#003E7F
Deuteranopia (green-blind)
#1C427A
Tritanopia (blue-blind)
#5A384D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5e267c;
/* rgb */ color: rgb(94, 38, 124);
/* oklch */ color: oklch(39.1% 0.144 311.5);
Tailwind
colors: {
  custom: {
    50: '#8f65a2',
    500: '#5e267c',
    950: '#000000',
  },
}
SCSS
$custom: #5e267c;
$custom-light: #8f65a2;
$custom-dark: #000000;
JSON
{
  "hex": "#5e267c",
  "rgb": {
    "r": 94,
    "g": 38,
    "b": 124
  },
  "hsl": {
    "h": 279.07,
    "s": 53.086,
    "l": 31.765
  },
  "oklch": {
    "l": 0.39149,
    "c": 0.14373,
    "h": 311.5
  },
  "luminance": 0.05221
}

Semantic roles & 50–950 ramp

primary
#5E267C
secondary
#71AE50
accent
#DC4B7E
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D060F
muted
#7E7A7F

Preview Lab

Preview with #5E267C

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

Preview Lab → · Contrast checker → · Palette generator →

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