#5F2299#5F2299

#5F2299 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.1% C 0.180 H 302.1°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#5F2299
RGBrgb(95, 34, 153)
HSLhsl(271, 64%, 37%)
HSVhsv(271, 78%, 60%)
CMYKcmyk(37.9%, 77.8%, 0%, 40%)
CIE-LABlab(29.10, 49.56, -53.37)
CIE-LCHlch(29.10, 72.83, 312.88°)
OKLaboklab(41.12% 0.0957 -0.1523)
OKLCHoklch(41.12% 0.18 302.1)
XYZxyz(11.0397, 5.8768, 30.6835)
Luminance0.0588 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2299 #5C9922
analogous
#242299 #5F2299 #992298
triadic
#5F2299 #995F22 #22995F
tetradic
#5F2299 #992422 #5C9922 #229899
square
#5F2299 #992422 #5C9922 #229899
split-complementary
#5F2299 #989922 #229924
monochromatic
#210C35 #401767 #5F2299 #7E2DCB #9C5BDB

Accessibility & contrast

On white

9.65
#5F2299 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#5F2299 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2299
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2299#FFFFFF#000000##FFFFFF
##5F22991.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449C
Deuteranopia (green-blind)
#004497
Tritanopia (blue-blind)
#53415D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5f2299;
/* rgb */ color: rgb(95, 34, 153);
/* oklch */ color: oklch(41.1% 0.180 302.1);
Tailwind
colors: {
  custom: {
    50: '#9264b8',
    500: '#5f2299',
    950: '#000000',
  },
}
SCSS
$custom: #5f2299;
$custom-light: #9264b8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2299",
  "rgb": {
    "r": 95,
    "g": 34,
    "b": 153
  },
  "hsl": {
    "h": 270.756,
    "s": 63.636,
    "l": 36.667
  },
  "oklch": {
    "l": 0.41122,
    "c": 0.17986,
    "h": 302.1
  },
  "luminance": 0.05877
}

Semantic roles & 50–950 ramp

primary
#5F2299
secondary
#8ABF58
accent
#E74192
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #5F2299

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

Preview Lab → · Contrast checker → · Palette generator →

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