#5A2FB3#5A2FB3

#5A2FB3 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.3% C 0.194 H 291.3°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#5A2FB3
RGBrgb(90, 47, 179)
HSLhsl(260, 58%, 44%)
HSVhsv(260, 74%, 70%)
CMYKcmyk(49.7%, 73.7%, 0%, 29.8%)
CIE-LABlab(32.83, 49.53, -62.96)
CIE-LCHlch(32.83, 80.11, 308.19°)
OKLaboklab(44.31% 0.0703 -0.1807)
OKLCHoklch(44.31% 0.194 291.3)
XYZxyz(13.3673, 7.4608, 43.3748)
Luminance0.0746 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2FB3 #88B32F
analogous
#2F46B3 #5A2FB3 #9C2FB3
triadic
#5A2FB3 #B35A2F #2FB35A
tetradic
#5A2FB3 #B32F46 #88B32F #2FB39C
square
#5A2FB3 #B32F46 #88B32F #2FB39C
split-complementary
#5A2FB3 #B39C2F #46B32F
monochromatic
#291652 #422283 #5A2FB3 #794FD1 #9E7FDD

Accessibility & contrast

On white

8.43
#5A2FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#5A2FB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2FB3
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2FB3#FFFFFF#000000##FFFFFF
##5A2FB31.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB7
Deuteranopia (green-blind)
#004AB0
Tritanopia (blue-blind)
#3C526E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5a2fb3;
/* rgb */ color: rgb(90, 47, 179);
/* oklch */ color: oklch(44.3% 0.194 291.3);
Tailwind
colors: {
  custom: {
    50: '#916ccb',
    500: '#5a2fb3',
    950: '#000000',
  },
}
SCSS
$custom: #5a2fb3;
$custom-light: #916ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2fb3",
  "rgb": {
    "r": 90,
    "g": 47,
    "b": 179
  },
  "hsl": {
    "h": 259.545,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.44307,
    "c": 0.19392,
    "h": 291.3
  },
  "luminance": 0.07461
}

Semantic roles & 50–950 ramp

primary
#5A2FB3
secondary
#ADC678
accent
#E246AF
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5A2FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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