#5F2FBB#5F2FBB

#5F2FBB is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 45.5% C 0.203 H 291.9°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#5F2FBB
RGBrgb(95, 47, 187)
HSLhsl(261, 60%, 46%)
HSVhsv(261, 75%, 73%)
CMYKcmyk(49.2%, 74.9%, 0%, 26.7%)
CIE-LABlab(34.09, 52.49, -65.62)
CIE-LCHlch(34.09, 84.03, 308.66°)
OKLaboklab(45.54% 0.0758 -0.1883)
OKLCHoklch(45.54% 0.203 291.9)
XYZxyz(14.7029, 8.0532, 47.7838)
Luminance0.0805 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2FBB #8BBB2F
analogous
#2F45BB #5F2FBB #A52FBB
triadic
#5F2FBB #BB5F2F #2FBB5F
tetradic
#5F2FBB #BB2F45 #8BBB2F #2FBBA5
square
#5F2FBB #BB2F45 #8BBB2F #2FBBA5
split-complementary
#5F2FBB #BBA52F #45BB2F
monochromatic
#2D1659 #46238A #5F2FBB #7F53D4 #A484E0

Accessibility & contrast

On white

8.04
#5F2FBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#5F2FBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2FBB
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2FBB#FFFFFF#000000##FFFFFF
##5F2FBB1.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BF
Deuteranopia (green-blind)
#004DB8
Tritanopia (blue-blind)
#415573
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5f2fbb;
/* rgb */ color: rgb(95, 47, 187);
/* oklch */ color: oklch(45.5% 0.203 291.9);
Tailwind
colors: {
  custom: {
    50: '#956dd1',
    500: '#5f2fbb',
    950: '#000000',
  },
}
SCSS
$custom: #5f2fbb;
$custom-light: #956dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2fbb",
  "rgb": {
    "r": 95,
    "g": 47,
    "b": 187
  },
  "hsl": {
    "h": 260.571,
    "s": 59.829,
    "l": 45.882
  },
  "oklch": {
    "l": 0.45539,
    "c": 0.20302,
    "h": 291.9
  },
  "luminance": 0.08054
}

Semantic roles & 50–950 ramp

primary
#5F2FBB
secondary
#AFC97C
accent
#E345AD
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5F2FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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