#5F2FA5#5F2FA5

#5F2FA5 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.6% C 0.178 H 296.9°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#5F2FA5
RGBrgb(95, 47, 165)
HSLhsl(264, 56%, 42%)
HSVhsv(264, 72%, 65%)
CMYKcmyk(42.4%, 71.5%, 0%, 35.3%)
CIE-LABlab(32.22, 46.60, -55.57)
CIE-LCHlch(32.22, 72.52, 309.99°)
OKLaboklab(43.63% 0.0807 -0.1588)
OKLCHoklch(43.63% 0.178 296.9)
XYZxyz(12.5256, 7.1823, 36.3164)
Luminance0.0718 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2FA5 #75A52F
analogous
#2F3AA5 #5F2FA5 #9A2FA5
triadic
#5F2FA5 #A55F2F #2FA55F
tetradic
#5F2FA5 #A52F3A #75A52F #2FA59A
square
#5F2FA5 #A52F3A #75A52F #2FA59A
split-complementary
#5F2FA5 #A59A2F #3AA52F
monochromatic
#281446 #442175 #5F2FA5 #7C47CB #9E76D8

Accessibility & contrast

On white

8.62
#5F2FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#5F2FA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2FA5
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2FA5#FFFFFF#000000##FFFFFF
##5F2FA51.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA8
Deuteranopia (green-blind)
#004AA3
Tritanopia (blue-blind)
#4D4C67
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5f2fa5;
/* rgb */ color: rgb(95, 47, 165);
/* oklch */ color: oklch(43.6% 0.178 296.9);
Tailwind
colors: {
  custom: {
    50: '#936cc1',
    500: '#5f2fa5',
    950: '#000000',
  },
}
SCSS
$custom: #5f2fa5;
$custom-light: #936cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2fa5",
  "rgb": {
    "r": 95,
    "g": 47,
    "b": 165
  },
  "hsl": {
    "h": 264.407,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.43634,
    "c": 0.17816,
    "h": 296.9
  },
  "luminance": 0.07183
}

Semantic roles & 50–950 ramp

primary
#5F2FA5
secondary
#9FC070
accent
#DF49A2
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5F2FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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