#5A269B#5A269B

#5A269B is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.1% C 0.177 H 298.4°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#5A269B
RGBrgb(90, 38, 155)
HSLhsl(267, 61%, 38%)
HSVhsv(267, 75%, 61%)
CMYKcmyk(41.9%, 75.5%, 0%, 39.2%)
CIE-LABlab(29.23, 47.42, -54.41)
CIE-LCHlch(29.23, 72.17, 311.07°)
OKLaboklab(41.12% 0.0841 -0.1556)
OKLCHoklch(41.12% 0.177 298.4)
XYZxyz(10.8244, 5.9263, 31.5776)
Luminance0.0593 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A269B #679B26
analogous
#262C9B #5A269B #95269B
triadic
#5A269B #9B5A26 #269B5A
tetradic
#5A269B #9B262C #679B26 #269B95
square
#5A269B #9B262C #679B26 #269B95
split-complementary
#5A269B #9B9526 #2C9B26
monochromatic
#210E39 #3D1A6A #5A269B #7732CC #9763D9

Accessibility & contrast

On white

9.61
#5A269B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5A269B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A269B
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A269B#FFFFFF#000000##FFFFFF
##5A269B1.009.612.199.61
#FFFFFF9.611.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459E
Deuteranopia (green-blind)
#004499
Tritanopia (blue-blind)
#4A445F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5a269b;
/* rgb */ color: rgb(90, 38, 155);
/* oklch */ color: oklch(41.1% 0.177 298.4);
Tailwind
colors: {
  custom: {
    50: '#8f66b9',
    500: '#5a269b',
    950: '#000000',
  },
}
SCSS
$custom: #5a269b;
$custom-light: #8f66b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a269b",
  "rgb": {
    "r": 90,
    "g": 38,
    "b": 155
  },
  "hsl": {
    "h": 266.667,
    "s": 60.622,
    "l": 37.843
  },
  "oklch": {
    "l": 0.41119,
    "c": 0.17685,
    "h": 298.4
  },
  "luminance": 0.05926
}

Semantic roles & 50–950 ramp

primary
#5A269B
secondary
#94BE5F
accent
#E4449D
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A269B

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

Preview Lab → · Contrast checker → · Palette generator →

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