#5F2BAD#5F2BAD

#5F2BAD is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.8% C 0.192 H 295.5°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#5F2BAD
RGBrgb(95, 43, 173)
HSLhsl(264, 60%, 42%)
HSVhsv(264, 75%, 68%)
CMYKcmyk(45.1%, 75.1%, 0%, 32.2%)
CIE-LABlab(32.21, 50.64, -60.39)
CIE-LCHlch(32.21, 78.81, 309.98°)
OKLaboklab(43.84% 0.0827 -0.173)
OKLCHoklch(43.84% 0.192 295.5)
XYZxyz(13.1240, 7.1775, 40.2210)
Luminance0.0718 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2BAD #79AD2B
analogous
#2B38AD #5F2BAD #A02BAD
triadic
#5F2BAD #AD5F2B #2BAD5F
tetradic
#5F2BAD #AD2B38 #79AD2B #2BADA0
square
#5F2BAD #AD2B38 #79AD2B #2BADA0
split-complementary
#5F2BAD #ADA02B #38AD2B
monochromatic
#29134B #441F7C #5F2BAD #7D45D1 #9F76DD

Accessibility & contrast

On white

8.62
#5F2BAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#5F2BAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2BAD
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2BAD#FFFFFF#000000##FFFFFF
##5F2BAD1.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB1
Deuteranopia (green-blind)
#004AAA
Tritanopia (blue-blind)
#494D6A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5f2bad;
/* rgb */ color: rgb(95, 43, 173);
/* oklch */ color: oklch(43.8% 0.192 295.5);
Tailwind
colors: {
  custom: {
    50: '#946ac6',
    500: '#5f2bad',
    950: '#000000',
  },
}
SCSS
$custom: #5f2bad;
$custom-light: #946ac6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2bad",
  "rgb": {
    "r": 95,
    "g": 43,
    "b": 173
  },
  "hsl": {
    "h": 264,
    "s": 60.185,
    "l": 42.353
  },
  "oklch": {
    "l": 0.43835,
    "c": 0.19171,
    "h": 295.5
  },
  "luminance": 0.07178
}

Semantic roles & 50–950 ramp

primary
#5F2BAD
secondary
#A2C46F
accent
#E344A4
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F2BAD

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

Preview Lab → · Contrast checker → · Palette generator →

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