#5A2FBE#5A2FBE

#5A2FBE is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.3% C 0.206 H 289.1°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#5A2FBE
RGBrgb(90, 47, 190)
HSLhsl(258, 60%, 46%)
HSVhsv(258, 75%, 75%)
CMYKcmyk(52.6%, 75.3%, 0%, 25.5%)
CIE-LABlab(33.82, 52.56, -67.85)
CIE-LCHlch(33.82, 85.83, 307.76°)
OKLaboklab(45.31% 0.0676 -0.195)
OKLCHoklch(45.31% 0.206 289.1)
XYZxyz(14.5245, 7.9237, 49.4693)
Luminance0.0792 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2FBE #93BE2F
analogous
#2F4CBE #5A2FBE #A22FBE
triadic
#5A2FBE #BE5A2F #2FBE5A
tetradic
#5A2FBE #BE2F4C #93BE2F #2FBEA2
square
#5A2FBE #BE2F4C #93BE2F #2FBEA2
split-complementary
#5A2FBE #BEA22F #4CBE2F
monochromatic
#2C175C #43238D #5A2FBE #7C55D5 #A286E1

Accessibility & contrast

On white

8.12
#5A2FBE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#5A2FBE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2FBE
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2FBE#FFFFFF#000000##FFFFFF
##5A2FBE1.008.122.588.12
#FFFFFF8.121.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C2
Deuteranopia (green-blind)
#004CBB
Tritanopia (blue-blind)
#345775
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5a2fbe;
/* rgb */ color: rgb(90, 47, 190);
/* oklch */ color: oklch(45.3% 0.206 289.1);
Tailwind
colors: {
  custom: {
    50: '#936cd3',
    500: '#5a2fbe',
    950: '#000000',
  },
}
SCSS
$custom: #5a2fbe;
$custom-light: #936cd3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2fbe",
  "rgb": {
    "r": 90,
    "g": 47,
    "b": 190
  },
  "hsl": {
    "h": 258.042,
    "s": 60.338,
    "l": 46.471
  },
  "oklch": {
    "l": 0.45306,
    "c": 0.20642,
    "h": 289.1
  },
  "luminance": 0.07924
}

Semantic roles & 50–950 ramp

primary
#5A2FBE
secondary
#B4CB7E
accent
#E344B4
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5A2FBE

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

Preview Lab → · Contrast checker → · Palette generator →

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