#5F2291#5F2291

#5F2291 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.5% C 0.172 H 304.7°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#5F2291
RGBrgb(95, 34, 145)
HSLhsl(273, 62%, 35%)
HSVhsv(273, 77%, 57%)
CMYKcmyk(34.5%, 76.6%, 0%, 43.1%)
CIE-LABlab(28.44, 47.62, -49.53)
CIE-LCHlch(28.44, 68.71, 313.87°)
OKLaboklab(40.45% 0.0976 -0.141)
OKLCHoklch(40.45% 0.172 304.7)
XYZxyz(10.4010, 5.6213, 27.3197)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2291 #549122
analogous
#282291 #5F2291 #91228B
triadic
#5F2291 #915F22 #22915F
tetradic
#5F2291 #912822 #549122 #228B91
square
#5F2291 #912822 #549122 #228B91
split-complementary
#5F2291 #8B9122 #229128
monochromatic
#1E0B2E #3F165F #5F2291 #7F2EC3 #9D56D7

Accessibility & contrast

On white

9.89
#5F2291 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#5F2291 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2291
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2291#FFFFFF#000000##FFFFFF
##5F22911.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004294
Deuteranopia (green-blind)
#00438F
Tritanopia (blue-blind)
#553E58
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5f2291;
/* rgb */ color: rgb(95, 34, 145);
/* oklch */ color: oklch(40.5% 0.172 304.7);
Tailwind
colors: {
  custom: {
    50: '#9164b2',
    500: '#5f2291',
    950: '#000000',
  },
}
SCSS
$custom: #5f2291;
$custom-light: #9164b2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2291",
  "rgb": {
    "r": 95,
    "g": 34,
    "b": 145
  },
  "hsl": {
    "h": 272.973,
    "s": 62.011,
    "l": 35.098
  },
  "oklch": {
    "l": 0.4045,
    "c": 0.17151,
    "h": 304.7
  },
  "luminance": 0.05621
}

Semantic roles & 50–950 ramp

primary
#5F2291
secondary
#82BB53
accent
#E5438C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5F2291

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

Preview Lab → · Contrast checker → · Palette generator →

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