#5F2297#5F2297

#5F2297 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.0% C 0.178 H 302.8°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#5F2297
RGBrgb(95, 34, 151)
HSLhsl(271, 63%, 36%)
HSVhsv(271, 77%, 59%)
CMYKcmyk(37.1%, 77.5%, 0%, 40.8%)
CIE-LABlab(28.93, 49.07, -52.41)
CIE-LCHlch(28.93, 71.80, 313.11°)
OKLaboklab(40.95% 0.0962 -0.1495)
OKLCHoklch(40.95% 0.178 302.8)
XYZxyz(10.8759, 5.8113, 29.8209)
Luminance0.0581 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2297 #5A9722
analogous
#252297 #5F2297 #972295
triadic
#5F2297 #975F22 #22975F
tetradic
#5F2297 #972522 #5A9722 #229597
square
#5F2297 #972522 #5A9722 #229597
split-complementary
#5F2297 #959722 #229725
monochromatic
#200C33 #401765 #5F2297 #7E2DC9 #9C5ADA

Accessibility & contrast

On white

9.71
#5F2297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F2297
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2297#FFFFFF#000000##FFFFFF
##5F22971.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439A
Deuteranopia (green-blind)
#004495
Tritanopia (blue-blind)
#53405B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5f2297;
/* rgb */ color: rgb(95, 34, 151);
/* oklch */ color: oklch(41.0% 0.178 302.8);
Tailwind
colors: {
  custom: {
    50: '#9264b6',
    500: '#5f2297',
    950: '#000000',
  },
}
SCSS
$custom: #5f2297;
$custom-light: #9264b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2297",
  "rgb": {
    "r": 95,
    "g": 34,
    "b": 151
  },
  "hsl": {
    "h": 271.282,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40952,
    "c": 0.17778,
    "h": 302.8
  },
  "luminance": 0.05811
}

Semantic roles & 50–950 ramp

primary
#5F2297
secondary
#88BE57
accent
#E64290
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #5F2297

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

Preview Lab → · Contrast checker → · Palette generator →

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