#5F2EA3#5F2EA3

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

Color values

HEX#5F2EA3
RGBrgb(95, 46, 163)
HSLhsl(265, 56%, 41%)
HSVhsv(265, 72%, 64%)
CMYKcmyk(41.7%, 71.8%, 0%, 36.1%)
CIE-LABlab(31.88, 46.58, -54.91)
CIE-LCHlch(31.88, 72.01, 310.30°)
OKLaboklab(43.34% 0.0821 -0.1569)
OKLCHoklch(43.34% 0.177 297.6)
XYZxyz(12.3055, 7.0310, 35.3520)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2EA3 #72A32E
analogous
#2E37A3 #5F2EA3 #992EA3
triadic
#5F2EA3 #A35F2E #2EA35F
tetradic
#5F2EA3 #A32E37 #72A32E #2EA399
square
#5F2EA3 #A32E37 #72A32E #2EA399
split-complementary
#5F2EA3 #A3992E #37A32E
monochromatic
#271344 #432173 #5F2EA3 #7C44CA #9E74D8

Accessibility & contrast

On white

8.73
#5F2EA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#5F2EA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2EA3
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2EA3#FFFFFF#000000##FFFFFF
##5F2EA31.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f2ea3;
/* rgb */ color: rgb(95, 46, 163);
/* oklch */ color: oklch(43.3% 0.177 297.6);
Tailwind
colors: {
  custom: {
    50: '#926bbf',
    500: '#5f2ea3',
    950: '#000000',
  },
}
SCSS
$custom: #5f2ea3;
$custom-light: #926bbf;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2ea3",
  "rgb": {
    "r": 95,
    "g": 46,
    "b": 163
  },
  "hsl": {
    "h": 265.128,
    "s": 55.981,
    "l": 40.98
  },
  "oklch": {
    "l": 0.43341,
    "c": 0.1771,
    "h": 297.6
  },
  "luminance": 0.07031
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F2EA3

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

Preview Lab → · Contrast checker → · Palette generator →

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