#5F2BA4#5F2BA4

#5F2BA4 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.1% C 0.182 H 297.8°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#5F2BA4
RGBrgb(95, 43, 164)
HSLhsl(266, 58%, 41%)
HSVhsv(266, 74%, 64%)
CMYKcmyk(42.1%, 73.8%, 0%, 35.7%)
CIE-LABlab(31.44, 48.29, -56.23)
CIE-LCHlch(31.44, 74.12, 310.66°)
OKLaboklab(43.06% 0.0848 -0.1608)
OKLCHoklch(43.06% 0.182 297.8)
XYZxyz(12.2823, 6.8408, 35.7881)
Luminance0.0684 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2BA4 #70A42B
analogous
#2B34A4 #5F2BA4 #9B2BA4
triadic
#5F2BA4 #A45F2B #2BA45F
tetradic
#5F2BA4 #A42B34 #70A42B #2BA49B
square
#5F2BA4 #A42B34 #70A42B #2BA49B
split-complementary
#5F2BA4 #A49B2B #34A42B
monochromatic
#271243 #431E74 #5F2BA4 #7C3FCD #9D70D9

Accessibility & contrast

On white

8.87
#5F2BA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#5F2BA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2BA4
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2BA4#FFFFFF#000000##FFFFFF
##5F2BA41.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA7
Deuteranopia (green-blind)
#0049A2
Tritanopia (blue-blind)
#4E4A65
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5f2ba4;
/* rgb */ color: rgb(95, 43, 164);
/* oklch */ color: oklch(43.1% 0.182 297.8);
Tailwind
colors: {
  custom: {
    50: '#9369c0',
    500: '#5f2ba4',
    950: '#000000',
  },
}
SCSS
$custom: #5f2ba4;
$custom-light: #9369c0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2ba4",
  "rgb": {
    "r": 95,
    "g": 43,
    "b": 164
  },
  "hsl": {
    "h": 265.785,
    "s": 58.454,
    "l": 40.588
  },
  "oklch": {
    "l": 0.43058,
    "c": 0.18175,
    "h": 297.8
  },
  "luminance": 0.06841
}

Semantic roles & 50–950 ramp

primary
#5F2BA4
secondary
#9BC16A
accent
#E2469F
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5F2BA4

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

Preview Lab → · Contrast checker → · Palette generator →

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