#5F28AF#5F28AF

#5F28AF is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.7% C 0.197 H 295.5°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#5F28AF
RGBrgb(95, 40, 175)
HSLhsl(264, 63%, 42%)
HSVhsv(264, 77%, 69%)
CMYKcmyk(45.7%, 77.1%, 0%, 31.4%)
CIE-LABlab(31.91, 52.51, -62.07)
CIE-LCHlch(31.91, 81.30, 310.23°)
OKLaboklab(43.68% 0.0847 -0.1779)
OKLCHoklch(43.68% 0.197 295.5)
XYZxyz(13.2139, 7.0453, 41.2128)
Luminance0.0705 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F28AF #78AF28
analogous
#2835AF #5F28AF #A228AF
triadic
#5F28AF #AF5F28 #28AF5F
tetradic
#5F28AF #AF2835 #78AF28 #28AFA2
square
#5F28AF #AF2835 #78AF28 #28AFA2
split-complementary
#5F28AF #AFA228 #35AF28
monochromatic
#29114B #441D7D #5F28AF #7D41D4 #9F73DF

Accessibility & contrast

On white

8.72
#5F28AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#5F28AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F28AF
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F28AF#FFFFFF#000000##FFFFFF
##5F28AF1.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB3
Deuteranopia (green-blind)
#0049AC
Tritanopia (blue-blind)
#484D6A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5f28af;
/* rgb */ color: rgb(95, 40, 175);
/* oklch */ color: oklch(43.7% 0.197 295.5);
Tailwind
colors: {
  custom: {
    50: '#9468c8',
    500: '#5f28af',
    950: '#000000',
  },
}
SCSS
$custom: #5f28af;
$custom-light: #9468c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f28af",
  "rgb": {
    "r": 95,
    "g": 40,
    "b": 175
  },
  "hsl": {
    "h": 264.444,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.4368,
    "c": 0.19702,
    "h": 295.5
  },
  "luminance": 0.07046
}

Semantic roles & 50–950 ramp

primary
#5F28AF
secondary
#A2C66D
accent
#E642A3
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F28AF

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

Preview Lab → · Contrast checker → · Palette generator →

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