#5F2E8A#5F2E8A

#5F2E8A is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.4% C 0.148 H 305.3°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#5F2E8A
RGBrgb(95, 46, 138)
HSLhsl(272, 50%, 36%)
HSVhsv(272, 67%, 54%)
CMYKcmyk(31.2%, 66.7%, 0%, 45.9%)
CIE-LABlab(29.97, 40.12, -42.72)
CIE-LCHlch(29.97, 58.61, 313.20°)
OKLaboklab(41.37% 0.0857 -0.1211)
OKLCHoklch(41.37% 0.148 305.3)
XYZxyz(10.2827, 6.2219, 24.6991)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2E8A #598A2E
analogous
#312E8A #5F2E8A #8A2E87
triadic
#5F2E8A #8A5F2E #2E8A5F
tetradic
#5F2E8A #8A312E #598A2E #2E878A
square
#5F2E8A #8A312E #598A2E #2E878A
split-complementary
#5F2E8A #878A2E #2E8A31
monochromatic
#200F2E #3F1F5C #5F2E8A #7F3DB8 #9D66CC

Accessibility & contrast

On white

9.36
#5F2E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5F2E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2E8A
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2E8A#FFFFFF#000000##FFFFFF
##5F2E8A1.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458D
Deuteranopia (green-blind)
#154788
Tritanopia (blue-blind)
#574258
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5f2e8a;
/* rgb */ color: rgb(95, 46, 138);
/* oklch */ color: oklch(41.4% 0.148 305.3);
Tailwind
colors: {
  custom: {
    50: '#906aad',
    500: '#5f2e8a',
    950: '#000000',
  },
}
SCSS
$custom: #5f2e8a;
$custom-light: #906aad;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2e8a",
  "rgb": {
    "r": 95,
    "g": 46,
    "b": 138
  },
  "hsl": {
    "h": 271.957,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.41372,
    "c": 0.14831,
    "h": 305.3
  },
  "luminance": 0.06222
}

Semantic roles & 50–950 ramp

primary
#5F2E8A
secondary
#87B361
accent
#DA4E8F
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5F2E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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