#5F2EA2#5F2EA2

#5F2EA2 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.3% C 0.176 H 297.9°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#5F2EA2
RGBrgb(95, 46, 162)
HSLhsl(265, 56%, 41%)
HSVhsv(265, 72%, 64%)
CMYKcmyk(41.4%, 71.6%, 0%, 36.5%)
CIE-LABlab(31.80, 46.31, -54.44)
CIE-LCHlch(31.80, 71.48, 310.39°)
OKLaboklab(43.26% 0.0823 -0.1555)
OKLCHoklch(43.26% 0.176 297.9)
XYZxyz(12.2162, 6.9953, 34.8820)
Luminance0.0700 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2EA2 #71A22E
analogous
#2E37A2 #5F2EA2 #992EA2
triadic
#5F2EA2 #A25F2E #2EA25F
tetradic
#5F2EA2 #A22E37 #71A22E #2EA299
square
#5F2EA2 #A22E37 #71A22E #2EA299
split-complementary
#5F2EA2 #A2992E #37A22E
monochromatic
#271343 #432072 #5F2EA2 #7C43CA #9D73D7

Accessibility & contrast

On white

8.75
#5F2EA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#5F2EA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2EA2
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2EA2#FFFFFF#000000##FFFFFF
##5F2EA21.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA5
Deuteranopia (green-blind)
#004AA0
Tritanopia (blue-blind)
#4E4B65
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5f2ea2;
/* rgb */ color: rgb(95, 46, 162);
/* oklch */ color: oklch(43.3% 0.176 297.9);
Tailwind
colors: {
  custom: {
    50: '#926bbe',
    500: '#5f2ea2',
    950: '#000000',
  },
}
SCSS
$custom: #5f2ea2;
$custom-light: #926bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2ea2",
  "rgb": {
    "r": 95,
    "g": 46,
    "b": 162
  },
  "hsl": {
    "h": 265.345,
    "s": 55.769,
    "l": 40.784
  },
  "oklch": {
    "l": 0.43258,
    "c": 0.17595,
    "h": 297.9
  },
  "luminance": 0.06996
}

Semantic roles & 50–950 ramp

primary
#5F2EA2
secondary
#9CBF6D
accent
#DF49A0
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5F2EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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