#5A279C#5A279C

#5A279C is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.3% C 0.177 H 298.0°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#5A279C
RGBrgb(90, 39, 156)
HSLhsl(266, 60%, 38%)
HSVhsv(266, 75%, 61%)
CMYKcmyk(42.3%, 75%, 0%, 38.8%)
CIE-LABlab(29.47, 47.21, -54.61)
CIE-LCHlch(29.47, 72.19, 310.85°)
OKLaboklab(41.32% 0.0829 -0.1562)
OKLCHoklch(41.32% 0.177 298)
XYZxyz(10.9412, 6.0248, 32.0325)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A279C #699C27
analogous
#272E9C #5A279C #94279C
triadic
#5A279C #9C5A27 #279C5A
tetradic
#5A279C #9C272E #699C27 #279C94
square
#5A279C #9C272E #699C27 #279C94
split-complementary
#5A279C #9C9427 #2E9C27
monochromatic
#220F3A #3E1B6B #5A279C #7634CC #9765D8

Accessibility & contrast

On white

9.52
#5A279C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5A279C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A279C
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A279C#FFFFFF#000000##FFFFFF
##5A279C1.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a279c;
/* rgb */ color: rgb(90, 39, 156);
/* oklch */ color: oklch(41.3% 0.177 298.0);
Tailwind
colors: {
  custom: {
    50: '#8f66ba',
    500: '#5a279c',
    950: '#000000',
  },
}
SCSS
$custom: #5a279c;
$custom-light: #8f66ba;
$custom-dark: #000000;
JSON
{
  "hex": "#5a279c",
  "rgb": {
    "r": 90,
    "g": 39,
    "b": 156
  },
  "hsl": {
    "h": 266.154,
    "s": 60,
    "l": 38.235
  },
  "oklch": {
    "l": 0.41321,
    "c": 0.17683,
    "h": 298
  },
  "luminance": 0.06025
}

Semantic roles & 50–950 ramp

primary
#5A279C
secondary
#95BE61
accent
#E3459E
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A279C

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

Preview Lab → · Contrast checker → · Palette generator →

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