#5F28AE#5F28AE

#5F28AE is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.6% C 0.196 H 295.7°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#5F28AE
RGBrgb(95, 40, 174)
HSLhsl(265, 63%, 42%)
HSVhsv(265, 77%, 68%)
CMYKcmyk(45.4%, 77%, 0%, 31.8%)
CIE-LABlab(31.82, 52.26, -61.62)
CIE-LCHlch(31.82, 80.79, 310.30°)
OKLaboklab(43.59% 0.085 -0.1766)
OKLCHoklch(43.59% 0.196 295.7)
XYZxyz(13.1160, 7.0061, 40.6975)
Luminance0.0701 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F28AE #77AE28
analogous
#2834AE #5F28AE #A228AE
triadic
#5F28AE #AE5F28 #28AE5F
tetradic
#5F28AE #AE2834 #77AE28 #28AEA2
square
#5F28AE #AE2834 #77AE28 #28AEA2
split-complementary
#5F28AE #AEA228 #34AE28
monochromatic
#29114A #441D7C #5F28AE #7C40D3 #9E72DF

Accessibility & contrast

On white

8.75
#5F28AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#5F28AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F28AE
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F28AE#FFFFFF#000000##FFFFFF
##5F28AE1.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB2
Deuteranopia (green-blind)
#0049AB
Tritanopia (blue-blind)
#494D6A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5f28ae;
/* rgb */ color: rgb(95, 40, 174);
/* oklch */ color: oklch(43.6% 0.196 295.7);
Tailwind
colors: {
  custom: {
    50: '#9468c7',
    500: '#5f28ae',
    950: '#000000',
  },
}
SCSS
$custom: #5f28ae;
$custom-light: #9468c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f28ae",
  "rgb": {
    "r": 95,
    "g": 40,
    "b": 174
  },
  "hsl": {
    "h": 264.627,
    "s": 62.617,
    "l": 41.961
  },
  "oklch": {
    "l": 0.43591,
    "c": 0.19594,
    "h": 295.7
  },
  "luminance": 0.07006
}

Semantic roles & 50–950 ramp

primary
#5F28AE
secondary
#A1C66C
accent
#E642A3
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5F28AE

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

Preview Lab → · Contrast checker → · Palette generator →

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