#5F2FA9#5F2FA9

#5F2FA9 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 44.0% C 0.183 H 295.9°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#5F2FA9
RGBrgb(95, 47, 169)
HSLhsl(264, 56%, 42%)
HSVhsv(264, 72%, 66%)
CMYKcmyk(43.8%, 72.2%, 0%, 33.7%)
CIE-LABlab(32.55, 47.67, -57.43)
CIE-LCHlch(32.55, 74.64, 309.69°)
OKLaboklab(43.97% 0.0799 -0.1643)
OKLCHoklch(43.97% 0.183 295.9)
XYZxyz(12.8954, 7.3302, 38.2639)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2FA9 #79A92F
analogous
#2F3CA9 #5F2FA9 #9C2FA9
triadic
#5F2FA9 #A95F2F #2FA95F
tetradic
#5F2FA9 #A92F3C #79A92F #2FA99C
square
#5F2FA9 #A92F3C #79A92F #2FA99C
split-complementary
#5F2FA9 #A99C2F #3CA92F
monochromatic
#291449 #442279 #5F2FA9 #7D49CC #9F79DA

Accessibility & contrast

On white

8.52
#5F2FA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#5F2FA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2FA9
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2FA9#FFFFFF#000000##FFFFFF
##5F2FA91.008.522.478.52
#FFFFFF8.521.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAD
Deuteranopia (green-blind)
#004BA7
Tritanopia (blue-blind)
#4B4E69
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5f2fa9;
/* rgb */ color: rgb(95, 47, 169);
/* oklch */ color: oklch(44.0% 0.183 295.9);
Tailwind
colors: {
  custom: {
    50: '#936cc3',
    500: '#5f2fa9',
    950: '#000000',
  },
}
SCSS
$custom: #5f2fa9;
$custom-light: #936cc3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2fa9",
  "rgb": {
    "r": 95,
    "g": 47,
    "b": 169
  },
  "hsl": {
    "h": 263.607,
    "s": 56.481,
    "l": 42.353
  },
  "oklch": {
    "l": 0.4397,
    "c": 0.18273,
    "h": 295.9
  },
  "luminance": 0.0733
}

Semantic roles & 50–950 ramp

primary
#5F2FA9
secondary
#A2C272
accent
#E048A4
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F2FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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