#5A279E#5A279E

#5A279E is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.5% C 0.179 H 297.4°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#5A279E
RGBrgb(90, 39, 158)
HSLhsl(266, 60%, 39%)
HSVhsv(266, 75%, 62%)
CMYKcmyk(43%, 75.3%, 0%, 38%)
CIE-LABlab(29.65, 47.73, -55.55)
CIE-LCHlch(29.65, 73.24, 310.67°)
OKLaboklab(41.5% 0.0825 -0.1589)
OKLCHoklch(41.5% 0.179 297.4)
XYZxyz(11.1119, 6.0931, 32.9318)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A279E #6B9E27
analogous
#27309E #5A279E #95279E
triadic
#5A279E #9E5A27 #279E5A
tetradic
#5A279E #9E2730 #6B9E27 #279E95
square
#5A279E #9E2730 #6B9E27 #279E95
split-complementary
#5A279E #9E9527 #309E27
monochromatic
#220F3C #3E1B6D #5A279E #7635CD #9766D9

Accessibility & contrast

On white

9.47
#5A279E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#5A279E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A279E
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A279E#FFFFFF#000000##FFFFFF
##5A279E1.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A1
Deuteranopia (green-blind)
#00449C
Tritanopia (blue-blind)
#484661
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5a279e;
/* rgb */ color: rgb(90, 39, 158);
/* oklch */ color: oklch(41.5% 0.179 297.4);
Tailwind
colors: {
  custom: {
    50: '#8f66bc',
    500: '#5a279e',
    950: '#000000',
  },
}
SCSS
$custom: #5a279e;
$custom-light: #8f66bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a279e",
  "rgb": {
    "r": 90,
    "g": 39,
    "b": 158
  },
  "hsl": {
    "h": 265.714,
    "s": 60.406,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41495,
    "c": 0.17904,
    "h": 297.4
  },
  "luminance": 0.06093
}

Semantic roles & 50–950 ramp

primary
#5A279E
secondary
#97BF62
accent
#E4449F
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A279E

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

Preview Lab → · Contrast checker → · Palette generator →

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