#5F2EA0#5F2EA0

#5F2EA0 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.1% C 0.174 H 298.4°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#5F2EA0
RGBrgb(95, 46, 160)
HSLhsl(266, 55%, 40%)
HSVhsv(266, 71%, 63%)
CMYKcmyk(40.6%, 71.2%, 0%, 37.3%)
CIE-LABlab(31.64, 45.79, -53.49)
CIE-LCHlch(31.64, 70.41, 310.56°)
OKLaboklab(43.09% 0.0827 -0.1527)
OKLCHoklch(43.09% 0.174 298.4)
XYZxyz(12.0399, 6.9248, 33.9532)
Luminance0.0693 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2EA0 #6FA02E
analogous
#2E36A0 #5F2EA0 #982EA0
triadic
#5F2EA0 #A05F2E #2EA05F
tetradic
#5F2EA0 #A02E36 #6FA02E #2EA098
square
#5F2EA0 #A02E36 #6FA02E #2EA098
split-complementary
#5F2EA0 #A0982E #36A02E
monochromatic
#271341 #432070 #5F2EA0 #7C42C9 #9D72D6

Accessibility & contrast

On white

8.81
#5F2EA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#5F2EA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2EA0
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2EA0#FFFFFF#000000##FFFFFF
##5F2EA01.008.812.398.81
#FFFFFF8.811.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA3
Deuteranopia (green-blind)
#00499E
Tritanopia (blue-blind)
#4F4A64
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5f2ea0;
/* rgb */ color: rgb(95, 46, 160);
/* oklch */ color: oklch(43.1% 0.174 298.4);
Tailwind
colors: {
  custom: {
    50: '#926bbd',
    500: '#5f2ea0',
    950: '#000000',
  },
}
SCSS
$custom: #5f2ea0;
$custom-light: #926bbd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2ea0",
  "rgb": {
    "r": 95,
    "g": 46,
    "b": 160
  },
  "hsl": {
    "h": 265.789,
    "s": 55.34,
    "l": 40.392
  },
  "oklch": {
    "l": 0.43093,
    "c": 0.17368,
    "h": 298.4
  },
  "luminance": 0.06925
}

Semantic roles & 50–950 ramp

primary
#5F2EA0
secondary
#9BBE6C
accent
#DF499E
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5F2EA0

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

Preview Lab → · Contrast checker → · Palette generator →

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