#5F2AA2#5F2AA2

#5F2AA2 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.8% C 0.181 H 298.5°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#5F2AA2
RGBrgb(95, 42, 162)
HSLhsl(267, 59%, 40%)
HSVhsv(267, 74%, 64%)
CMYKcmyk(41.4%, 74.1%, 0%, 36.5%)
CIE-LABlab(31.11, 48.25, -55.56)
CIE-LCHlch(31.11, 73.59, 310.97°)
OKLaboklab(42.77% 0.0862 -0.1588)
OKLCHoklch(42.77% 0.181 298.5)
XYZxyz(12.0672, 6.6973, 34.8323)
Luminance0.0670 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2AA2 #6DA22A
analogous
#2A31A2 #5F2AA2 #9B2AA2
triadic
#5F2AA2 #A25F2A #2AA25F
tetradic
#5F2AA2 #A22A31 #6DA22A #2AA29B
square
#5F2AA2 #A22A31 #6DA22A #2AA29B
split-complementary
#5F2AA2 #A29B2A #31A22A
monochromatic
#261141 #421D71 #5F2AA2 #7C3DCD #9D6DD9

Accessibility & contrast

On white

8.98
#5F2AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#5F2AA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2AA2
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2AA2#FFFFFF#000000##FFFFFF
##5F2AA21.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A5
Deuteranopia (green-blind)
#0048A0
Tritanopia (blue-blind)
#4F4964
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5f2aa2;
/* rgb */ color: rgb(95, 42, 162);
/* oklch */ color: oklch(42.8% 0.181 298.5);
Tailwind
colors: {
  custom: {
    50: '#9369be',
    500: '#5f2aa2',
    950: '#000000',
  },
}
SCSS
$custom: #5f2aa2;
$custom-light: #9369be;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2aa2",
  "rgb": {
    "r": 95,
    "g": 42,
    "b": 162
  },
  "hsl": {
    "h": 266.5,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.4277,
    "c": 0.18069,
    "h": 298.5
  },
  "luminance": 0.06697
}

Semantic roles & 50–950 ramp

primary
#5F2AA2
secondary
#99C068
accent
#E2469D
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F2AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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