#5A268E#5A268E

#5A268E is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.0% C 0.162 H 302.3°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#5A268E
RGBrgb(90, 38, 142)
HSLhsl(270, 58%, 35%)
HSVhsv(270, 73%, 56%)
CMYKcmyk(36.6%, 73.2%, 0%, 44.3%)
CIE-LABlab(28.15, 44.09, -48.17)
CIE-LCHlch(28.15, 65.30, 312.47°)
OKLaboklab(40.02% 0.0869 -0.1372)
OKLCHoklch(40.02% 0.162 302.3)
XYZxyz(9.7909, 5.5129, 26.1342)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A268E #5A8E26
analogous
#26268E #5A268E #8E268E
triadic
#5A268E #8E5A26 #268E5A
tetradic
#5A268E #8E2626 #5A8E26 #268E8E
square
#5A268E #8E2626 #5A8E26 #268E8E
split-complementary
#5A268E #8E8E26 #268E26
monochromatic
#1D0C2D #3B195E #5A268E #7933BE #975BD3

Accessibility & contrast

On white

9.99
#5A268E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#5A268E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A268E
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A268E#FFFFFF#000000##FFFFFF
##5A268E1.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004291
Deuteranopia (green-blind)
#00428C
Tritanopia (blue-blind)
#4F3F57
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5a268e;
/* rgb */ color: rgb(90, 38, 142);
/* oklch */ color: oklch(40.0% 0.162 302.3);
Tailwind
colors: {
  custom: {
    50: '#8e65b0',
    500: '#5a268e',
    950: '#000000',
  },
}
SCSS
$custom: #5a268e;
$custom-light: #8e65b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a268e",
  "rgb": {
    "r": 90,
    "g": 38,
    "b": 142
  },
  "hsl": {
    "h": 270,
    "s": 57.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.40022,
    "c": 0.16246,
    "h": 302.3
  },
  "luminance": 0.05513
}

Semantic roles & 50–950 ramp

primary
#5A268E
secondary
#88B858
accent
#E14794
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5A268E

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

Preview Lab → · Contrast checker → · Palette generator →

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