#5A2F92#5A2F92

#5A2F92 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.5% C 0.155 H 299.5°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#5A2F92
RGBrgb(90, 47, 146)
HSLhsl(266, 51%, 38%)
HSVhsv(266, 68%, 57%)
CMYKcmyk(38.4%, 67.8%, 0%, 42.7%)
CIE-LABlab(30.11, 40.54, -47.45)
CIE-LCHlch(30.11, 62.41, 310.51°)
OKLaboklab(41.52% 0.0765 -0.1352)
OKLCHoklch(41.52% 0.155 299.5)
XYZxyz(10.4200, 6.2819, 27.8521)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2F92 #67922F
analogous
#2F3592 #5A2F92 #8B2F92
triadic
#5A2F92 #925A2F #2F925A
tetradic
#5A2F92 #922F35 #67922F #2F928B
square
#5A2F92 #922F35 #67922F #2F928B
split-complementary
#5A2F92 #928B2F #35922F
monochromatic
#211135 #3D2064 #5A2F92 #773EC0 #976CD0

Accessibility & contrast

On white

9.31
#5A2F92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#5A2F92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2F92
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2F92#FFFFFF#000000##FFFFFF
##5A2F921.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004795
Deuteranopia (green-blind)
#004690
Tritanopia (blue-blind)
#4D465C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5a2f92;
/* rgb */ color: rgb(90, 47, 146);
/* oklch */ color: oklch(41.5% 0.155 299.5);
Tailwind
colors: {
  custom: {
    50: '#8d6ab3',
    500: '#5a2f92',
    950: '#000000',
  },
}
SCSS
$custom: #5a2f92;
$custom-light: #8d6ab3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2f92",
  "rgb": {
    "r": 90,
    "g": 47,
    "b": 146
  },
  "hsl": {
    "h": 266.061,
    "s": 51.295,
    "l": 37.843
  },
  "oklch": {
    "l": 0.41523,
    "c": 0.15529,
    "h": 299.5
  },
  "luminance": 0.06282
}

Semantic roles & 50–950 ramp

primary
#5A2F92
secondary
#94B766
accent
#DB4D9D
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5A2F92

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

Preview Lab → · Contrast checker → · Palette generator →

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