#5A268B#5A268B

#5A268B is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.8% C 0.159 H 303.3°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#5A268B
RGBrgb(90, 38, 139)
HSLhsl(271, 57%, 35%)
HSVhsv(271, 73%, 55%)
CMYKcmyk(35.3%, 72.7%, 0%, 45.5%)
CIE-LABlab(27.91, 43.33, -46.70)
CIE-LCHlch(27.91, 63.71, 312.86°)
OKLaboklab(39.78% 0.0875 -0.1329)
OKLCHoklch(39.78% 0.159 303.3)
XYZxyz(9.5687, 5.4240, 24.9639)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A268B #578B26
analogous
#28268B #5A268B #8B268A
triadic
#5A268B #8B5A26 #268B5A
tetradic
#5A268B #8B2826 #578B26 #268A8B
square
#5A268B #8B2826 #578B26 #268A8B
split-complementary
#5A268B #8A8B26 #268B28
monochromatic
#1C0C2B #3B195B #5A268B #7933BB #975AD2

Accessibility & contrast

On white

10.07
#5A268B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#5A268B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A268B
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A268B#FFFFFF#000000##FFFFFF
##5A268B1.0010.072.0810.07
#FFFFFF10.071.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418E
Deuteranopia (green-blind)
#004289
Tritanopia (blue-blind)
#503E56
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5a268b;
/* rgb */ color: rgb(90, 38, 139);
/* oklch */ color: oklch(39.8% 0.159 303.3);
Tailwind
colors: {
  custom: {
    50: '#8d65ae',
    500: '#5a268b',
    950: '#000000',
  },
}
SCSS
$custom: #5a268b;
$custom-light: #8d65ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5a268b",
  "rgb": {
    "r": 90,
    "g": 38,
    "b": 139
  },
  "hsl": {
    "h": 270.891,
    "s": 57.062,
    "l": 34.706
  },
  "oklch": {
    "l": 0.39778,
    "c": 0.15912,
    "h": 303.3
  },
  "luminance": 0.05424
}

Semantic roles & 50–950 ramp

primary
#5A268B
secondary
#85B756
accent
#E04792
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5A268B

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

Preview Lab → · Contrast checker → · Palette generator →

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