#5A267D#5A267D

#5A267D is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.7% C 0.143 H 308.6°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#5A267D
RGBrgb(90, 38, 125)
HSLhsl(276, 53%, 32%)
HSVhsv(276, 70%, 49%)
CMYKcmyk(28%, 69.6%, 0%, 51%)
CIE-LABlab(26.85, 39.86, -39.65)
CIE-LCHlch(26.85, 56.22, 315.15°)
OKLaboklab(38.69% 0.0894 -0.1122)
OKLCHoklch(38.69% 0.143 308.6)
XYZxyz(8.6105, 5.0407, 19.9174)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A267D #497D26
analogous
#2F267D #5A267D #7D2675
triadic
#5A267D #7D5A26 #267D5A
tetradic
#5A267D #7D2F26 #497D26 #26757D
square
#5A267D #7D2F26 #497D26 #26757D
split-complementary
#5A267D #757D26 #267D2F
monochromatic
#16091F #38184E #5A267D #7C34AC #9A53CB

Accessibility & contrast

On white

10.46
#5A267D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#5A267D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A267D
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A267D#FFFFFF#000000##FFFFFF
##5A267D1.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D80
Deuteranopia (green-blind)
#15407B
Tritanopia (blue-blind)
#55394E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5a267d;
/* rgb */ color: rgb(90, 38, 125);
/* oklch */ color: oklch(38.7% 0.143 308.6);
Tailwind
colors: {
  custom: {
    50: '#8c64a3',
    500: '#5a267d',
    950: '#000000',
  },
}
SCSS
$custom: #5a267d;
$custom-light: #8c64a3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a267d",
  "rgb": {
    "r": 90,
    "g": 38,
    "b": 125
  },
  "hsl": {
    "h": 275.862,
    "s": 53.374,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38687,
    "c": 0.14349,
    "h": 308.6
  },
  "luminance": 0.05041
}

Semantic roles & 50–950 ramp

primary
#5A267D
secondary
#76AF50
accent
#DD4B86
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #5A267D

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

Preview Lab → · Contrast checker → · Palette generator →

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