#5F28A4#5F28A4

#5F28A4 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.7% C 0.185 H 298.2°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#5F28A4
RGBrgb(95, 40, 164)
HSLhsl(267, 61%, 40%)
HSVhsv(267, 76%, 64%)
CMYKcmyk(42.1%, 75.6%, 0%, 35.7%)
CIE-LABlab(30.95, 49.69, -57.03)
CIE-LCHlch(30.95, 75.64, 311.06°)
OKLaboklab(42.71% 0.0876 -0.1631)
OKLCHoklch(42.71% 0.185 298.2)
XYZxyz(12.1772, 6.6306, 35.7530)
Luminance0.0663 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F28A4 #6DA428
analogous
#282FA4 #5F28A4 #9D28A4
triadic
#5F28A4 #A45F28 #28A45F
tetradic
#5F28A4 #A4282F #6DA428 #28A49D
square
#5F28A4 #A4282F #6DA428 #28A49D
split-complementary
#5F28A4 #A49D28 #2FA428
monochromatic
#261042 #431C73 #5F28A4 #7C3ACF #9D6BDB

Accessibility & contrast

On white

9.03
#5F28A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#5F28A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F28A4
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F28A4#FFFFFF#000000##FFFFFF
##5F28A41.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A8
Deuteranopia (green-blind)
#0048A2
Tritanopia (blue-blind)
#4E4864
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5f28a4;
/* rgb */ color: rgb(95, 40, 164);
/* oklch */ color: oklch(42.7% 0.185 298.2);
Tailwind
colors: {
  custom: {
    50: '#9368c0',
    500: '#5f28a4',
    950: '#000000',
  },
}
SCSS
$custom: #5f28a4;
$custom-light: #9368c0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f28a4",
  "rgb": {
    "r": 95,
    "g": 40,
    "b": 164
  },
  "hsl": {
    "h": 266.613,
    "s": 60.784,
    "l": 40
  },
  "oklch": {
    "l": 0.42712,
    "c": 0.18512,
    "h": 298.2
  },
  "luminance": 0.06631
}

Semantic roles & 50–950 ramp

primary
#5F28A4
secondary
#99C166
accent
#E4449D
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F28A4

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

Preview Lab → · Contrast checker → · Palette generator →

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