#5E268E#5E268E

#5E268E is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.5% C 0.163 H 304.6°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#5E268E
RGBrgb(94, 38, 142)
HSLhsl(272, 58%, 35%)
HSVhsv(272, 73%, 56%)
CMYKcmyk(33.8%, 73.2%, 0%, 44.3%)
CIE-LABlab(28.69, 44.89, -47.27)
CIE-LCHlch(28.69, 65.19, 313.53°)
OKLaboklab(40.53% 0.0928 -0.1344)
OKLCHoklch(40.53% 0.163 304.6)
XYZxyz(10.1906, 5.7190, 26.1529)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E268E #568E26
analogous
#2A268E #5E268E #8E268A
triadic
#5E268E #8E5E26 #268E5E
tetradic
#5E268E #8E2A26 #568E26 #268A8E
square
#5E268E #8E2A26 #568E26 #268A8E
split-complementary
#5E268E #8A8E26 #268E2A
monochromatic
#1E0C2D #3E195E #5E268E #7E33BE #9C5BD3

Accessibility & contrast

On white

9.80
#5E268E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#5E268E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E268E
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E268E#FFFFFF#000000##FFFFFF
##5E268E1.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004291
Deuteranopia (green-blind)
#00448C
Tritanopia (blue-blind)
#553F57
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5e268e;
/* rgb */ color: rgb(94, 38, 142);
/* oklch */ color: oklch(40.5% 0.163 304.6);
Tailwind
colors: {
  custom: {
    50: '#9066b0',
    500: '#5e268e',
    950: '#000000',
  },
}
SCSS
$custom: #5e268e;
$custom-light: #9066b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e268e",
  "rgb": {
    "r": 94,
    "g": 38,
    "b": 142
  },
  "hsl": {
    "h": 272.308,
    "s": 57.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.40526,
    "c": 0.16333,
    "h": 304.6
  },
  "luminance": 0.05719
}

Semantic roles & 50–950 ramp

primary
#5E268E
secondary
#84B858
accent
#E1478E
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5E268E

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

Preview Lab → · Contrast checker → · Palette generator →

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