#5F28A8#5F28A8

#5F28A8 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.1% C 0.189 H 297.2°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#5F28A8
RGBrgb(95, 40, 168)
HSLhsl(266, 62%, 41%)
HSVhsv(266, 76%, 66%)
CMYKcmyk(43.5%, 76.2%, 0%, 34.1%)
CIE-LABlab(31.29, 50.71, -58.88)
CIE-LCHlch(31.29, 77.71, 310.74°)
OKLaboklab(43.06% 0.0866 -0.1685)
OKLCHoklch(43.06% 0.189 297.2)
XYZxyz(12.5441, 6.7774, 37.6855)
Luminance0.0678 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F28A8 #71A828
analogous
#2831A8 #5F28A8 #9F28A8
triadic
#5F28A8 #A85F28 #28A85F
tetradic
#5F28A8 #A82831 #71A828 #28A89F
square
#5F28A8 #A82831 #71A828 #28A89F
split-complementary
#5F28A8 #A89F28 #31A828
monochromatic
#271045 #431C77 #5F28A8 #7C3DD1 #9D6EDC

Accessibility & contrast

On white

8.91
#5F28A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#5F28A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F28A8
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F28A8#FFFFFF#000000##FFFFFF
##5F28A81.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAC
Deuteranopia (green-blind)
#0048A6
Tritanopia (blue-blind)
#4C4A66
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5f28a8;
/* rgb */ color: rgb(95, 40, 168);
/* oklch */ color: oklch(43.1% 0.189 297.2);
Tailwind
colors: {
  custom: {
    50: '#9368c3',
    500: '#5f28a8',
    950: '#000000',
  },
}
SCSS
$custom: #5f28a8;
$custom-light: #9368c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f28a8",
  "rgb": {
    "r": 95,
    "g": 40,
    "b": 168
  },
  "hsl": {
    "h": 265.781,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.4306,
    "c": 0.18946,
    "h": 297.2
  },
  "luminance": 0.06778
}

Semantic roles & 50–950 ramp

primary
#5F28A8
secondary
#9CC369
accent
#E5439F
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5F28A8

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

Preview Lab → · Contrast checker → · Palette generator →

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