#5F2BB7#5F2BB7

#5F2BB7 is a dark, highly saturated violet. Relative luminance 0.076; OKLCH L 44.7% C 0.203 H 293.3°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#5F2BB7
RGBrgb(95, 43, 183)
HSLhsl(262, 62%, 44%)
HSVhsv(262, 77%, 72%)
CMYKcmyk(48.1%, 76.5%, 0%, 28.2%)
CIE-LABlab(33.09, 53.26, -64.90)
CIE-LCHlch(33.09, 83.96, 309.38°)
OKLaboklab(44.73% 0.0801 -0.1862)
OKLCHoklch(44.73% 0.203 293.3)
XYZxyz(14.1281, 7.5791, 45.5091)
Luminance0.0758 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2BB7 #83B72B
analogous
#2B3DB7 #5F2BB7 #A52BB7
triadic
#5F2BB7 #B75F2B #2BB75F
tetradic
#5F2BB7 #B72B3D #83B72B #2BB7A5
square
#5F2BB7 #B72B3D #83B72B #2BB7A5
split-complementary
#5F2BB7 #B7A52B #3DB72B
monochromatic
#2C1454 #451F85 #5F2BB7 #7E4BD5 #A17CE0

Accessibility & contrast

On white

8.35
#5F2BB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#5F2BB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2BB7
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2BB7#FFFFFF#000000##FFFFFF
##5F2BB71.008.352.528.35
#FFFFFF8.351.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBB
Deuteranopia (green-blind)
#004BB4
Tritanopia (blue-blind)
#445270
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5f2bb7;
/* rgb */ color: rgb(95, 43, 183);
/* oklch */ color: oklch(44.7% 0.203 293.3);
Tailwind
colors: {
  custom: {
    50: '#956ace',
    500: '#5f2bb7',
    950: '#000000',
  },
}
SCSS
$custom: #5f2bb7;
$custom-light: #956ace;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2bb7",
  "rgb": {
    "r": 95,
    "g": 43,
    "b": 183
  },
  "hsl": {
    "h": 262.286,
    "s": 61.947,
    "l": 44.314
  },
  "oklch": {
    "l": 0.44726,
    "c": 0.20268,
    "h": 293.3
  },
  "luminance": 0.0758
}

Semantic roles & 50–950 ramp

primary
#5F2BB7
secondary
#AAC975
accent
#E543A9
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5F2BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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