#5F28AC#5F28AC

#5F28AC is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.4% C 0.194 H 296.2°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#5F28AC
RGBrgb(95, 40, 172)
HSLhsl(265, 62%, 42%)
HSVhsv(265, 77%, 67%)
CMYKcmyk(44.8%, 76.7%, 0%, 32.5%)
CIE-LABlab(31.64, 51.74, -60.71)
CIE-LCHlch(31.64, 79.77, 310.44°)
OKLaboklab(43.41% 0.0855 -0.1739)
OKLCHoklch(43.41% 0.194 296.2)
XYZxyz(12.9225, 6.9287, 39.6783)
Luminance0.0693 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F28AC #75AC28
analogous
#2833AC #5F28AC #A128AC
triadic
#5F28AC #AC5F28 #28AC5F
tetradic
#5F28AC #AC2833 #75AC28 #28ACA1
square
#5F28AC #AC2833 #75AC28 #28ACA1
split-complementary
#5F28AC #ACA128 #33AC28
monochromatic
#281149 #441C7A #5F28AC #7C3FD2 #9E71DE

Accessibility & contrast

On white

8.80
#5F28AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F28AC
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F28AC#FFFFFF#000000##FFFFFF
##5F28AC1.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB0
Deuteranopia (green-blind)
#0049A9
Tritanopia (blue-blind)
#4A4C69
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5f28ac;
/* rgb */ color: rgb(95, 40, 172);
/* oklch */ color: oklch(43.4% 0.194 296.2);
Tailwind
colors: {
  custom: {
    50: '#9468c6',
    500: '#5f28ac',
    950: '#000000',
  },
}
SCSS
$custom: #5f28ac;
$custom-light: #9468c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f28ac",
  "rgb": {
    "r": 95,
    "g": 40,
    "b": 172
  },
  "hsl": {
    "h": 265,
    "s": 62.264,
    "l": 41.569
  },
  "oklch": {
    "l": 0.43413,
    "c": 0.19378,
    "h": 296.2
  },
  "luminance": 0.06929
}

Semantic roles & 50–950 ramp

primary
#5F28AC
secondary
#9FC56B
accent
#E542A1
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5F28AC

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

Preview Lab → · Contrast checker → · Palette generator →

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