#5F2BBF#5F2BBF

#5F2BBF is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.5% C 0.211 H 291.6°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#5F2BBF
RGBrgb(95, 43, 191)
HSLhsl(261, 63%, 46%)
HSVhsv(261, 77%, 75%)
CMYKcmyk(50.3%, 77.5%, 0%, 25.1%)
CIE-LABlab(33.82, 55.37, -68.43)
CIE-LCHlch(33.82, 88.02, 308.98°)
OKLaboklab(45.46% 0.0778 -0.1965)
OKLCHoklch(45.46% 0.211 291.6)
XYZxyz(14.9845, 7.9217, 50.0196)
Luminance0.0792 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2BBF #8BBF2B
analogous
#2B41BF #5F2BBF #A92BBF
triadic
#5F2BBF #BF5F2B #2BBF5F
tetradic
#5F2BBF #BF2B41 #8BBF2B #2BBFA9
square
#5F2BBF #BF2B41 #8BBF2B #2BBFA9
split-complementary
#5F2BBF #BFA92B #41BF2B
monochromatic
#2D155B #46208D #5F2BBF #7F50D8 #A482E3

Accessibility & contrast

On white

8.13
#5F2BBF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F2BBF
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2BBF#FFFFFF#000000##FFFFFF
##5F2BBF1.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C3
Deuteranopia (green-blind)
#004CBC
Tritanopia (blue-blind)
#3E5574
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5f2bbf;
/* rgb */ color: rgb(95, 43, 191);
/* oklch */ color: oklch(45.5% 0.211 291.6);
Tailwind
colors: {
  custom: {
    50: '#966bd3',
    500: '#5f2bbf',
    950: '#000000',
  },
}
SCSS
$custom: #5f2bbf;
$custom-light: #966bd3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2bbf",
  "rgb": {
    "r": 95,
    "g": 43,
    "b": 191
  },
  "hsl": {
    "h": 261.081,
    "s": 63.248,
    "l": 45.882
  },
  "oklch": {
    "l": 0.45457,
    "c": 0.21137,
    "h": 291.6
  },
  "luminance": 0.07922
}

Semantic roles & 50–950 ramp

primary
#5F2BBF
secondary
#AFCC7A
accent
#E642AC
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0F0714
muted
#7E7A83

Preview Lab

Preview with #5F2BBF

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

Preview Lab → · Contrast checker → · Palette generator →

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