#5F2E9F#5F2E9F

#5F2E9F is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.0% C 0.173 H 298.7°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#5F2E9F
RGBrgb(95, 46, 159)
HSLhsl(266, 55%, 40%)
HSVhsv(266, 71%, 62%)
CMYKcmyk(40.3%, 71.1%, 0%, 37.6%)
CIE-LABlab(31.55, 45.52, -53.02)
CIE-LCHlch(31.55, 69.88, 310.65°)
OKLaboklab(43.01% 0.0828 -0.1514)
OKLCHoklch(43.01% 0.173 298.7)
XYZxyz(11.9527, 6.8899, 33.4943)
Luminance0.0689 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2E9F #6E9F2E
analogous
#2E359F #5F2E9F #982E9F
triadic
#5F2E9F #9F5F2E #2E9F5F
tetradic
#5F2E9F #9F2E35 #6E9F2E #2E9F98
square
#5F2E9F #9F2E35 #6E9F2E #2E9F98
split-complementary
#5F2E9F #9F982E #359F2E
monochromatic
#261340 #432070 #5F2E9F #7C42C8 #9D71D6

Accessibility & contrast

On white

8.83
#5F2E9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#5F2E9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2E9F
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2E9F#FFFFFF#000000##FFFFFF
##5F2E9F1.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA2
Deuteranopia (green-blind)
#00499D
Tritanopia (blue-blind)
#504A63
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5f2e9f;
/* rgb */ color: rgb(95, 46, 159);
/* oklch */ color: oklch(43.0% 0.173 298.7);
Tailwind
colors: {
  custom: {
    50: '#926bbc',
    500: '#5f2e9f',
    950: '#000000',
  },
}
SCSS
$custom: #5f2e9f;
$custom-light: #926bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2e9f",
  "rgb": {
    "r": 95,
    "g": 46,
    "b": 159
  },
  "hsl": {
    "h": 266.018,
    "s": 55.122,
    "l": 40.196
  },
  "oklch": {
    "l": 0.43011,
    "c": 0.17253,
    "h": 298.7
  },
  "luminance": 0.0689
}

Semantic roles & 50–950 ramp

primary
#5F2E9F
secondary
#9ABE6B
accent
#DE499E
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5F2E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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