#5F28AA#5F28AA

#5F28AA is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.2% C 0.192 H 296.7°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#5F28AA
RGBrgb(95, 40, 170)
HSLhsl(265, 62%, 41%)
HSVhsv(265, 76%, 67%)
CMYKcmyk(44.1%, 76.5%, 0%, 33.3%)
CIE-LABlab(31.47, 51.23, -59.80)
CIE-LCHlch(31.47, 78.74, 310.59°)
OKLaboklab(43.24% 0.086 -0.1712)
OKLCHoklch(43.24% 0.192 296.7)
XYZxyz(12.7319, 6.8525, 38.6743)
Luminance0.0685 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F28AA #73AA28
analogous
#2832AA #5F28AA #A028AA
triadic
#5F28AA #AA5F28 #28AA5F
tetradic
#5F28AA #AA2832 #73AA28 #28AAA0
square
#5F28AA #AA2832 #73AA28 #28AAA0
split-complementary
#5F28AA #AAA028 #32AA28
monochromatic
#281147 #431C78 #5F28AA #7C3ED2 #9E6FDD

Accessibility & contrast

On white

8.86
#5F28AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#5F28AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F28AA
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F28AA#FFFFFF#000000##FFFFFF
##5F28AA1.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAE
Deuteranopia (green-blind)
#0048A8
Tritanopia (blue-blind)
#4B4B68
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5f28aa;
/* rgb */ color: rgb(95, 40, 170);
/* oklch */ color: oklch(43.2% 0.192 296.7);
Tailwind
colors: {
  custom: {
    50: '#9468c4',
    500: '#5f28aa',
    950: '#000000',
  },
}
SCSS
$custom: #5f28aa;
$custom-light: #9468c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f28aa",
  "rgb": {
    "r": 95,
    "g": 40,
    "b": 170
  },
  "hsl": {
    "h": 265.385,
    "s": 61.905,
    "l": 41.176
  },
  "oklch": {
    "l": 0.43236,
    "c": 0.19162,
    "h": 296.7
  },
  "luminance": 0.06853
}

Semantic roles & 50–950 ramp

primary
#5F28AA
secondary
#9EC46A
accent
#E543A0
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5F28AA

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

Preview Lab → · Contrast checker → · Palette generator →

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