#5E268F#5E268F

#5E268F is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.6% C 0.164 H 304.3°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#5E268F
RGBrgb(94, 38, 143)
HSLhsl(272, 58%, 35%)
HSVhsv(272, 73%, 56%)
CMYKcmyk(34.3%, 73.4%, 0%, 43.9%)
CIE-LABlab(28.77, 45.14, -47.76)
CIE-LCHlch(28.77, 65.72, 313.39°)
OKLaboklab(40.61% 0.0926 -0.1359)
OKLCHoklch(40.61% 0.164 304.3)
XYZxyz(10.2660, 5.7491, 26.5501)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E268F #578F26
analogous
#29268F #5E268F #8F268B
triadic
#5E268F #8F5E26 #268F5E
tetradic
#5E268F #8F2926 #578F26 #268B8F
square
#5E268F #8F2926 #578F26 #268B8F
split-complementary
#5E268F #8B8F26 #268F29
monochromatic
#1E0C2E #3E195F #5E268F #7E33BF #9C5CD4

Accessibility & contrast

On white

9.77
#5E268F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5E268F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E268F
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E268F#FFFFFF#000000##FFFFFF
##5E268F1.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004392
Deuteranopia (green-blind)
#00448D
Tritanopia (blue-blind)
#553F58
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5e268f;
/* rgb */ color: rgb(94, 38, 143);
/* oklch */ color: oklch(40.6% 0.164 304.3);
Tailwind
colors: {
  custom: {
    50: '#9066b1',
    500: '#5e268f',
    950: '#000000',
  },
}
SCSS
$custom: #5e268f;
$custom-light: #9066b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e268f",
  "rgb": {
    "r": 94,
    "g": 38,
    "b": 143
  },
  "hsl": {
    "h": 272,
    "s": 58.011,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40606,
    "c": 0.16443,
    "h": 304.3
  },
  "luminance": 0.05749
}

Semantic roles & 50–950 ramp

primary
#5E268F
secondary
#85B958
accent
#E1478F
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5E268F

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

Preview Lab → · Contrast checker → · Palette generator →

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