#5A279F#5A279F

#5A279F is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.6% C 0.180 H 297.2°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#5A279F
RGBrgb(90, 39, 159)
HSLhsl(266, 61%, 39%)
HSVhsv(266, 75%, 62%)
CMYKcmyk(43.4%, 75.5%, 0%, 37.6%)
CIE-LABlab(29.73, 48.00, -56.02)
CIE-LCHlch(29.73, 73.77, 310.59°)
OKLaboklab(41.58% 0.0822 -0.1603)
OKLCHoklch(41.58% 0.18 297.2)
XYZxyz(11.1983, 6.1277, 33.3869)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A279F #6C9F27
analogous
#27309F #5A279F #96279F
triadic
#5A279F #9F5A27 #279F5A
tetradic
#5A279F #9F2730 #6C9F27 #279F96
square
#5A279F #9F2730 #6C9F27 #279F96
split-complementary
#5A279F #9F9627 #309F27
monochromatic
#220F3D #3E1B6E #5A279F #7636CE #9867DA

Accessibility & contrast

On white

9.44
#5A279F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#5A279F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A279F
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A279F#FFFFFF#000000##FFFFFF
##5A279F1.009.442.239.44
#FFFFFF9.441.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A2
Deuteranopia (green-blind)
#00459D
Tritanopia (blue-blind)
#484661
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5a279f;
/* rgb */ color: rgb(90, 39, 159);
/* oklch */ color: oklch(41.6% 0.180 297.2);
Tailwind
colors: {
  custom: {
    50: '#8f66bc',
    500: '#5a279f',
    950: '#000000',
  },
}
SCSS
$custom: #5a279f;
$custom-light: #8f66bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a279f",
  "rgb": {
    "r": 90,
    "g": 39,
    "b": 159
  },
  "hsl": {
    "h": 265.5,
    "s": 60.606,
    "l": 38.824
  },
  "oklch": {
    "l": 0.41582,
    "c": 0.18015,
    "h": 297.2
  },
  "luminance": 0.06128
}

Semantic roles & 50–950 ramp

primary
#5A279F
secondary
#98C062
accent
#E444A0
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A279F

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

Preview Lab → · Contrast checker → · Palette generator →

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