#5F2696#5F2696

#5F2696 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.3% C 0.172 H 302.5°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#5F2696
RGBrgb(95, 38, 150)
HSLhsl(271, 60%, 37%)
HSVhsv(271, 75%, 59%)
CMYKcmyk(36.7%, 74.7%, 0%, 41.2%)
CIE-LABlab(29.47, 47.07, -50.93)
CIE-LCHlch(29.47, 69.35, 312.74°)
OKLaboklab(41.3% 0.0927 -0.1452)
OKLCHoklch(41.3% 0.172 302.5)
XYZxyz(10.9161, 6.0211, 29.4353)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2696 #5D9626
analogous
#272696 #5F2696 #962695
triadic
#5F2696 #965F26 #26965F
tetradic
#5F2696 #962726 #5D9626 #269596
square
#5F2696 #962726 #5D9626 #269596
split-complementary
#5F2696 #959626 #269627
monochromatic
#210D34 #401A65 #5F2696 #7E32C7 #9C60D7

Accessibility & contrast

On white

9.53
#5F2696 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5F2696 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2696
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2696#FFFFFF#000000##FFFFFF
##5F26961.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004499
Deuteranopia (green-blind)
#004594
Tritanopia (blue-blind)
#54425C
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5f2696;
/* rgb */ color: rgb(95, 38, 150);
/* oklch */ color: oklch(41.3% 0.172 302.5);
Tailwind
colors: {
  custom: {
    50: '#9266b6',
    500: '#5f2696',
    950: '#000000',
  },
}
SCSS
$custom: #5f2696;
$custom-light: #9266b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2696",
  "rgb": {
    "r": 95,
    "g": 38,
    "b": 150
  },
  "hsl": {
    "h": 270.536,
    "s": 59.574,
    "l": 36.863
  },
  "oklch": {
    "l": 0.41303,
    "c": 0.17222,
    "h": 302.5
  },
  "luminance": 0.06021
}

Semantic roles & 50–950 ramp

primary
#5F2696
secondary
#8BBC5C
accent
#E34592
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5F2696

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

Preview Lab → · Contrast checker → · Palette generator →

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