#5F2298#5F2298

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

Color values

HEX#5F2298
RGBrgb(95, 34, 152)
HSLhsl(271, 63%, 36%)
HSVhsv(271, 78%, 60%)
CMYKcmyk(37.5%, 77.6%, 0%, 40.4%)
CIE-LABlab(29.02, 49.32, -52.89)
CIE-LCHlch(29.02, 72.32, 313.00°)
OKLaboklab(41.04% 0.0959 -0.1509)
OKLCHoklch(41.04% 0.179 302.5)
XYZxyz(10.9575, 5.8439, 30.2504)
Luminance0.0584 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2298 #5B9822
analogous
#242298 #5F2298 #982296
triadic
#5F2298 #985F22 #22985F
tetradic
#5F2298 #982422 #5B9822 #229698
square
#5F2298 #982422 #5B9822 #229698
split-complementary
#5F2298 #969822 #229824
monochromatic
#200C34 #401766 #5F2298 #7E2DCA #9C5ADA

Accessibility & contrast

On white

9.68
#5F2298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#5F2298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2298
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2298#FFFFFF#000000##FFFFFF
##5F22981.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439B
Deuteranopia (green-blind)
#004496
Tritanopia (blue-blind)
#53415C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5f2298;
/* rgb */ color: rgb(95, 34, 152);
/* oklch */ color: oklch(41.0% 0.179 302.5);
Tailwind
colors: {
  custom: {
    50: '#9264b7',
    500: '#5f2298',
    950: '#000000',
  },
}
SCSS
$custom: #5f2298;
$custom-light: #9264b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2298",
  "rgb": {
    "r": 95,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 271.017,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.41037,
    "c": 0.17882,
    "h": 302.5
  },
  "luminance": 0.05844
}

Semantic roles & 50–950 ramp

primary
#5F2298
secondary
#89BE57
accent
#E64191
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #5F2298

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

Preview Lab → · Contrast checker → · Palette generator →

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