#5F2FAC#5F2FAC

#5F2FAC is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.2% C 0.186 H 295.2°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#5F2FAC
RGBrgb(95, 47, 172)
HSLhsl(263, 57%, 43%)
HSVhsv(263, 73%, 67%)
CMYKcmyk(44.8%, 72.7%, 0%, 32.5%)
CIE-LABlab(32.80, 48.47, -58.82)
CIE-LCHlch(32.80, 76.22, 309.49°)
OKLaboklab(44.22% 0.0793 -0.1684)
OKLCHoklch(44.22% 0.186 295.2)
XYZxyz(13.1802, 7.4442, 39.7642)
Luminance0.0744 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2FAC #7CAC2F
analogous
#2F3DAC #5F2FAC #9D2FAC
triadic
#5F2FAC #AC5F2F #2FAC5F
tetradic
#5F2FAC #AC2F3D #7CAC2F #2FAC9D
square
#5F2FAC #AC2F3D #7CAC2F #2FAC9D
split-complementary
#5F2FAC #AC9D2F #3DAC2F
monochromatic
#2A154C #44227C #5F2FAC #7D4BCE #A07BDB

Accessibility & contrast

On white

8.44
#5F2FAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#5F2FAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2FAC
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2FAC#FFFFFF#000000##FFFFFF
##5F2FAC1.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB0
Deuteranopia (green-blind)
#004BAA
Tritanopia (blue-blind)
#4A4F6A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5f2fac;
/* rgb */ color: rgb(95, 47, 172);
/* oklch */ color: oklch(44.2% 0.186 295.2);
Tailwind
colors: {
  custom: {
    50: '#936cc6',
    500: '#5f2fac',
    950: '#000000',
  },
}
SCSS
$custom: #5f2fac;
$custom-light: #936cc6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2fac",
  "rgb": {
    "r": 95,
    "g": 47,
    "b": 172
  },
  "hsl": {
    "h": 263.04,
    "s": 57.078,
    "l": 42.941
  },
  "oklch": {
    "l": 0.44225,
    "c": 0.18614,
    "h": 295.2
  },
  "luminance": 0.07444
}

Semantic roles & 50–950 ramp

primary
#5F2FAC
secondary
#A5C374
accent
#E047A6
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F2FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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