#5F28A3#5F28A3

#5F28A3 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.6% C 0.184 H 298.5°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#5F28A3
RGBrgb(95, 40, 163)
HSLhsl(267, 61%, 40%)
HSVhsv(267, 75%, 64%)
CMYKcmyk(41.7%, 75.5%, 0%, 36.1%)
CIE-LABlab(30.87, 49.43, -56.56)
CIE-LCHlch(30.87, 75.12, 311.15°)
OKLaboklab(42.63% 0.0878 -0.1617)
OKLCHoklch(42.63% 0.184 298.5)
XYZxyz(12.0873, 6.5946, 35.2793)
Luminance0.0659 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F28A3 #6CA328
analogous
#282FA3 #5F28A3 #9C28A3
triadic
#5F28A3 #A35F28 #28A35F
tetradic
#5F28A3 #A3282F #6CA328 #28A39C
square
#5F28A3 #A3282F #6CA328 #28A39C
split-complementary
#5F28A3 #A39C28 #2FA328
monochromatic
#261041 #421C72 #5F28A3 #7C3ACF #9D6BDB

Accessibility & contrast

On white

9.06
#5F28A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#5F28A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F28A3
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F28A3#FFFFFF#000000##FFFFFF
##5F28A31.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A6
Deuteranopia (green-blind)
#0047A1
Tritanopia (blue-blind)
#4E4864
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5f28a3;
/* rgb */ color: rgb(95, 40, 163);
/* oklch */ color: oklch(42.6% 0.184 298.5);
Tailwind
colors: {
  custom: {
    50: '#9368bf',
    500: '#5f28a3',
    950: '#000000',
  },
}
SCSS
$custom: #5f28a3;
$custom-light: #9368bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5f28a3",
  "rgb": {
    "r": 95,
    "g": 40,
    "b": 163
  },
  "hsl": {
    "h": 266.829,
    "s": 60.591,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42626,
    "c": 0.18403,
    "h": 298.5
  },
  "luminance": 0.06595
}

Semantic roles & 50–950 ramp

primary
#5F28A3
secondary
#98C166
accent
#E4449C
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F28A3

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

Preview Lab → · Contrast checker → · Palette generator →

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