#5F2E86#5F2E86

#5F2E86 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.1% C 0.144 H 306.7°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#5F2E86
RGBrgb(95, 46, 134)
HSLhsl(273, 49%, 35%)
HSVhsv(273, 66%, 53%)
CMYKcmyk(29.1%, 65.7%, 0%, 47.5%)
CIE-LABlab(29.68, 39.12, -40.69)
CIE-LCHlch(29.68, 56.45, 313.87°)
OKLaboklab(41.08% 0.0859 -0.1151)
OKLCHoklch(41.08% 0.144 306.7)
XYZxyz(9.9985, 6.1082, 23.2019)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2E86 #55862E
analogous
#332E86 #5F2E86 #862E81
triadic
#5F2E86 #865F2E #2E865F
tetradic
#5F2E86 #86332E #55862E #2E8186
square
#5F2E86 #86332E #55862E #2E8186
split-complementary
#5F2E86 #81862E #2E8633
monochromatic
#1E0F2B #3F1E58 #5F2E86 #7F3EB4 #9D64CA

Accessibility & contrast

On white

9.45
#5F2E86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#5F2E86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2E86
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2E86#FFFFFF#000000##FFFFFF
##5F2E861.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004489
Deuteranopia (green-blind)
#1B4684
Tritanopia (blue-blind)
#594055
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5f2e86;
/* rgb */ color: rgb(95, 46, 134);
/* oklch */ color: oklch(41.1% 0.144 306.7);
Tailwind
colors: {
  custom: {
    50: '#906aaa',
    500: '#5f2e86',
    950: '#000000',
  },
}
SCSS
$custom: #5f2e86;
$custom-light: #906aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2e86",
  "rgb": {
    "r": 95,
    "g": 46,
    "b": 134
  },
  "hsl": {
    "h": 273.409,
    "s": 48.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.41078,
    "c": 0.14366,
    "h": 306.7
  },
  "luminance": 0.06108
}

Semantic roles & 50–950 ramp

primary
#5F2E86
secondary
#83B15F
accent
#D84F8C
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5F2E86

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

Preview Lab → · Contrast checker → · Palette generator →

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