#5F28AD#5F28AD

#5F28AD is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.5% C 0.195 H 295.9°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#5F28AD
RGBrgb(95, 40, 173)
HSLhsl(265, 62%, 42%)
HSVhsv(265, 77%, 68%)
CMYKcmyk(45.1%, 76.9%, 0%, 32.2%)
CIE-LABlab(31.73, 52.00, -61.16)
CIE-LCHlch(31.73, 80.28, 310.37°)
OKLaboklab(43.5% 0.0852 -0.1752)
OKLCHoklch(43.5% 0.195 295.9)
XYZxyz(13.0189, 6.9673, 40.1860)
Luminance0.0697 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F28AD #76AD28
analogous
#2834AD #5F28AD #A228AD
triadic
#5F28AD #AD5F28 #28AD5F
tetradic
#5F28AD #AD2834 #76AD28 #28ADA2
square
#5F28AD #AD2834 #76AD28 #28ADA2
split-complementary
#5F28AD #ADA228 #34AD28
monochromatic
#28114A #441D7B #5F28AD #7C3FD3 #9E71DE

Accessibility & contrast

On white

8.77
#5F28AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#5F28AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F28AD
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F28AD#FFFFFF#000000##FFFFFF
##5F28AD1.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB1
Deuteranopia (green-blind)
#0049AA
Tritanopia (blue-blind)
#494C69
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5f28ad;
/* rgb */ color: rgb(95, 40, 173);
/* oklch */ color: oklch(43.5% 0.195 295.9);
Tailwind
colors: {
  custom: {
    50: '#9468c6',
    500: '#5f28ad',
    950: '#000000',
  },
}
SCSS
$custom: #5f28ad;
$custom-light: #9468c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f28ad",
  "rgb": {
    "r": 95,
    "g": 40,
    "b": 173
  },
  "hsl": {
    "h": 264.812,
    "s": 62.441,
    "l": 41.765
  },
  "oklch": {
    "l": 0.43502,
    "c": 0.19486,
    "h": 295.9
  },
  "luminance": 0.06968
}

Semantic roles & 50–950 ramp

primary
#5F28AD
secondary
#A0C56C
accent
#E642A2
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5F28AD

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

Preview Lab → · Contrast checker → · Palette generator →

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