#5A2FBF#5A2FBF

#5A2FBF is a mid, highly saturated violet. Relative luminance 0.080; OKLCH L 45.4% C 0.208 H 288.9°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#5A2FBF
RGBrgb(90, 47, 191)
HSLhsl(258, 61%, 47%)
HSVhsv(258, 75%, 75%)
CMYKcmyk(52.9%, 75.4%, 0%, 25.1%)
CIE-LABlab(33.92, 52.83, -68.29)
CIE-LCHlch(33.92, 86.34, 307.73°)
OKLaboklab(45.4% 0.0673 -0.1963)
OKLCHoklch(45.4% 0.208 288.9)
XYZxyz(14.6342, 7.9676, 50.0469)
Luminance0.0797 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2FBF #94BF2F
analogous
#2F4CBF #5A2FBF #A22FBF
triadic
#5A2FBF #BF5A2F #2FBF5A
tetradic
#5A2FBF #BF2F4C #94BF2F #2FBFA2
square
#5A2FBF #BF2F4C #94BF2F #2FBFA2
split-complementary
#5A2FBF #BFA22F #4CBF2F
monochromatic
#2C175D #43238E #5A2FBF #7C56D5 #A287E1

Accessibility & contrast

On white

8.10
#5A2FBF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#5A2FBF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2FBF
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2FBF#FFFFFF#000000##FFFFFF
##5A2FBF1.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C3
Deuteranopia (green-blind)
#004CBC
Tritanopia (blue-blind)
#335775
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5a2fbf;
/* rgb */ color: rgb(90, 47, 191);
/* oklch */ color: oklch(45.4% 0.208 288.9);
Tailwind
colors: {
  custom: {
    50: '#936cd3',
    500: '#5a2fbf',
    950: '#000000',
  },
}
SCSS
$custom: #5a2fbf;
$custom-light: #936cd3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2fbf",
  "rgb": {
    "r": 90,
    "g": 47,
    "b": 191
  },
  "hsl": {
    "h": 257.917,
    "s": 60.504,
    "l": 46.667
  },
  "oklch": {
    "l": 0.45399,
    "c": 0.20754,
    "h": 288.9
  },
  "luminance": 0.07968
}

Semantic roles & 50–950 ramp

primary
#5A2FBF
secondary
#B4CB7F
accent
#E444B4
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5A2FBF

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

Preview Lab → · Contrast checker → · Palette generator →

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