#5A2F90#5A2F90

#5A2F90 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.4% C 0.153 H 300.1°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#5A2F90
RGBrgb(90, 47, 144)
HSLhsl(267, 51%, 37%)
HSVhsv(267, 67%, 56%)
CMYKcmyk(37.5%, 67.4%, 0%, 43.5%)
CIE-LABlab(29.96, 40.01, -46.47)
CIE-LCHlch(29.96, 61.32, 310.73°)
OKLaboklab(41.37% 0.0767 -0.1323)
OKLCHoklch(41.37% 0.153 300.1)
XYZxyz(10.2658, 6.2202, 27.0399)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2F90 #65902F
analogous
#2F3590 #5A2F90 #8A2F90
triadic
#5A2F90 #905A2F #2F905A
tetradic
#5A2F90 #902F35 #65902F #2F908A
square
#5A2F90 #902F35 #65902F #2F908A
split-complementary
#5A2F90 #908A2F #35902F
monochromatic
#201134 #3D2062 #5A2F90 #773EBE #976BCF

Accessibility & contrast

On white

9.36
#5A2F90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5A2F90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2F90
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2F90#FFFFFF#000000##FFFFFF
##5A2F901.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004693
Deuteranopia (green-blind)
#00468E
Tritanopia (blue-blind)
#4E455B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5a2f90;
/* rgb */ color: rgb(90, 47, 144);
/* oklch */ color: oklch(41.4% 0.153 300.1);
Tailwind
colors: {
  custom: {
    50: '#8d6ab1',
    500: '#5a2f90',
    950: '#000000',
  },
}
SCSS
$custom: #5a2f90;
$custom-light: #8d6ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2f90",
  "rgb": {
    "r": 90,
    "g": 47,
    "b": 144
  },
  "hsl": {
    "h": 266.598,
    "s": 50.785,
    "l": 37.451
  },
  "oklch": {
    "l": 0.41367,
    "c": 0.15289,
    "h": 300.1
  },
  "luminance": 0.0622
}

Semantic roles & 50–950 ramp

primary
#5A2F90
secondary
#92B665
accent
#DA4E9C
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0711
muted
#7D7A80

Preview Lab

Preview with #5A2F90

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

Preview Lab → · Contrast checker → · Palette generator →

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