#5F2296#5F2296

#5F2296 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.9% C 0.177 H 303.1°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#5F2296
RGBrgb(95, 34, 150)
HSLhsl(272, 63%, 36%)
HSVhsv(272, 77%, 59%)
CMYKcmyk(36.7%, 77.3%, 0%, 41.2%)
CIE-LABlab(28.85, 48.83, -51.94)
CIE-LCHlch(28.85, 71.29, 313.23°)
OKLaboklab(40.87% 0.0964 -0.1481)
OKLCHoklch(40.87% 0.177 303.1)
XYZxyz(10.7951, 5.7790, 29.3950)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2296 #599622
analogous
#252296 #5F2296 #962293
triadic
#5F2296 #965F22 #22965F
tetradic
#5F2296 #962522 #599622 #229396
square
#5F2296 #962522 #599622 #229396
split-complementary
#5F2296 #939622 #229625
monochromatic
#200B32 #3F1764 #5F2296 #7F2DC8 #9D59D9

Accessibility & contrast

On white

9.74
#5F2296 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#5F2296 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2296
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2296#FFFFFF#000000##FFFFFF
##5F22961.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004399
Deuteranopia (green-blind)
#004494
Tritanopia (blue-blind)
#54405B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5f2296;
/* rgb */ color: rgb(95, 34, 150);
/* oklch */ color: oklch(40.9% 0.177 303.1);
Tailwind
colors: {
  custom: {
    50: '#9264b6',
    500: '#5f2296',
    950: '#000000',
  },
}
SCSS
$custom: #5f2296;
$custom-light: #9264b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2296",
  "rgb": {
    "r": 95,
    "g": 34,
    "b": 150
  },
  "hsl": {
    "h": 271.552,
    "s": 63.043,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40867,
    "c": 0.17672,
    "h": 303.1
  },
  "luminance": 0.05779
}

Semantic roles & 50–950 ramp

primary
#5F2296
secondary
#87BE56
accent
#E64290
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5F2296

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

Preview Lab → · Contrast checker → · Palette generator →

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