#5F2399#5F2399

#5F2399 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.2% C 0.179 H 302.0°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#5F2399
RGBrgb(95, 35, 153)
HSLhsl(271, 63%, 37%)
HSVhsv(271, 77%, 60%)
CMYKcmyk(37.9%, 77.1%, 0%, 40%)
CIE-LABlab(29.25, 49.14, -53.12)
CIE-LCHlch(29.25, 72.36, 312.77°)
OKLaboklab(41.23% 0.0948 -0.1516)
OKLCHoklch(41.23% 0.179 302)
XYZxyz(11.0687, 5.9348, 30.6932)
Luminance0.0593 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2399 #5D9923
analogous
#242399 #5F2399 #992398
triadic
#5F2399 #995F23 #23995F
tetradic
#5F2399 #992423 #5D9923 #239899
square
#5F2399 #992423 #5D9923 #239899
split-complementary
#5F2399 #989923 #239924
monochromatic
#210C35 #401867 #5F2399 #7E2ECB #9C5DDA

Accessibility & contrast

On white

9.60
#5F2399 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5F2399 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2399
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2399#FFFFFF#000000##FFFFFF
##5F23991.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f2399;
/* rgb */ color: rgb(95, 35, 153);
/* oklch */ color: oklch(41.2% 0.179 302.0);
Tailwind
colors: {
  custom: {
    50: '#9265b8',
    500: '#5f2399',
    950: '#000000',
  },
}
SCSS
$custom: #5f2399;
$custom-light: #9265b8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2399",
  "rgb": {
    "r": 95,
    "g": 35,
    "b": 153
  },
  "hsl": {
    "h": 270.508,
    "s": 62.766,
    "l": 36.863
  },
  "oklch": {
    "l": 0.41226,
    "c": 0.17879,
    "h": 302
  },
  "luminance": 0.05935
}

Semantic roles & 50–950 ramp

primary
#5F2399
secondary
#8BBE59
accent
#E64293
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #5F2399

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

Preview Lab → · Contrast checker → · Palette generator →

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