#5F2AA0#5F2AA0

#5F2AA0 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.6% C 0.178 H 299.0°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#5F2AA0
RGBrgb(95, 42, 160)
HSLhsl(267, 58%, 40%)
HSVhsv(267, 74%, 63%)
CMYKcmyk(40.6%, 73.8%, 0%, 37.3%)
CIE-LABlab(30.94, 47.74, -54.62)
CIE-LCHlch(30.94, 72.54, 311.15°)
OKLaboklab(42.6% 0.0866 -0.156)
OKLCHoklch(42.6% 0.178 299)
XYZxyz(11.8908, 6.6267, 33.9035)
Luminance0.0663 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2AA0 #6BA02A
analogous
#2A30A0 #5F2AA0 #9A2AA0
triadic
#5F2AA0 #A05F2A #2AA05F
tetradic
#5F2AA0 #A02A30 #6BA02A #2AA09A
square
#5F2AA0 #A02A30 #6BA02A #2AA09A
split-complementary
#5F2AA0 #A09A2A #30A02A
monochromatic
#25113F #421D70 #5F2AA0 #7C3CCC #9D6CD8

Accessibility & contrast

On white

9.03
#5F2AA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#5F2AA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2AA0
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2AA0#FFFFFF#000000##FFFFFF
##5F2AA01.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A3
Deuteranopia (green-blind)
#00489E
Tritanopia (blue-blind)
#4F4862
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5f2aa0;
/* rgb */ color: rgb(95, 42, 160);
/* oklch */ color: oklch(42.6% 0.178 299.0);
Tailwind
colors: {
  custom: {
    50: '#9269bd',
    500: '#5f2aa0',
    950: '#000000',
  },
}
SCSS
$custom: #5f2aa0;
$custom-light: #9269bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2aa0",
  "rgb": {
    "r": 95,
    "g": 42,
    "b": 160
  },
  "hsl": {
    "h": 266.949,
    "s": 58.416,
    "l": 39.608
  },
  "oklch": {
    "l": 0.42601,
    "c": 0.17847,
    "h": 299
  },
  "luminance": 0.06627
}

Semantic roles & 50–950 ramp

primary
#5F2AA0
secondary
#97BF67
accent
#E2469C
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F2AA0

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

Preview Lab → · Contrast checker → · Palette generator →

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