#5A269C#5A269C

#5A269C is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.2% C 0.178 H 298.1°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#5A269C
RGBrgb(90, 38, 156)
HSLhsl(266, 61%, 38%)
HSVhsv(266, 76%, 61%)
CMYKcmyk(42.3%, 75.6%, 0%, 38.8%)
CIE-LABlab(29.31, 47.68, -54.88)
CIE-LCHlch(29.31, 72.70, 310.98°)
OKLaboklab(41.21% 0.0839 -0.1569)
OKLCHoklch(41.21% 0.178 298.1)
XYZxyz(10.9088, 5.9600, 32.0217)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A269C #689C26
analogous
#262D9C #5A269C #95269C
triadic
#5A269C #9C5A26 #269C5A
tetradic
#5A269C #9C262D #689C26 #269C95
square
#5A269C #9C262D #689C26 #269C95
split-complementary
#5A269C #9C9526 #2D9C26
monochromatic
#210E3A #3E1A6B #5A269C #7632CD #9763D9

Accessibility & contrast

On white

9.58
#5A269C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A269C
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A269C#FFFFFF#000000##FFFFFF
##5A269C1.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459F
Deuteranopia (green-blind)
#00449A
Tritanopia (blue-blind)
#49455F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5a269c;
/* rgb */ color: rgb(90, 38, 156);
/* oklch */ color: oklch(41.2% 0.178 298.1);
Tailwind
colors: {
  custom: {
    50: '#8f66ba',
    500: '#5a269c',
    950: '#000000',
  },
}
SCSS
$custom: #5a269c;
$custom-light: #8f66ba;
$custom-dark: #000000;
JSON
{
  "hex": "#5a269c",
  "rgb": {
    "r": 90,
    "g": 38,
    "b": 156
  },
  "hsl": {
    "h": 266.441,
    "s": 60.825,
    "l": 38.039
  },
  "oklch": {
    "l": 0.41206,
    "c": 0.17795,
    "h": 298.1
  },
  "luminance": 0.0596
}

Semantic roles & 50–950 ramp

primary
#5A269C
secondary
#95BF5F
accent
#E4449D
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A269C

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

Preview Lab → · Contrast checker → · Palette generator →

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