#5F28B1#5F28B1

#5F28B1 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.9% C 0.199 H 295.0°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#5F28B1
RGBrgb(95, 40, 177)
HSLhsl(264, 63%, 43%)
HSVhsv(264, 77%, 69%)
CMYKcmyk(46.3%, 77.4%, 0%, 30.6%)
CIE-LABlab(32.09, 53.03, -62.97)
CIE-LCHlch(32.09, 82.33, 310.10°)
OKLaboklab(43.86% 0.0841 -0.1805)
OKLCHoklch(43.86% 0.199 295)
XYZxyz(13.4118, 7.1244, 42.2550)
Luminance0.0712 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F28B1 #7AB128
analogous
#2835B1 #5F28B1 #A428B1
triadic
#5F28B1 #B15F28 #28B15F
tetradic
#5F28B1 #B12835 #7AB128 #28B1A4
square
#5F28B1 #B12835 #7AB128 #28B1A4
split-complementary
#5F28B1 #B1A428 #35B128
monochromatic
#29114D #441D7F #5F28B1 #7D42D4 #9F74E0

Accessibility & contrast

On white

8.66
#5F28B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#5F28B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F28B1
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F28B1#FFFFFF#000000##FFFFFF
##5F28B11.008.662.428.66
#FFFFFF8.661.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB5
Deuteranopia (green-blind)
#0049AE
Tritanopia (blue-blind)
#474E6C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5f28b1;
/* rgb */ color: rgb(95, 40, 177);
/* oklch */ color: oklch(43.9% 0.199 295.0);
Tailwind
colors: {
  custom: {
    50: '#9468c9',
    500: '#5f28b1',
    950: '#000000',
  },
}
SCSS
$custom: #5f28b1;
$custom-light: #9468c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f28b1",
  "rgb": {
    "r": 95,
    "g": 40,
    "b": 177
  },
  "hsl": {
    "h": 264.088,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.4386,
    "c": 0.19917,
    "h": 295
  },
  "luminance": 0.07125
}

Semantic roles & 50–950 ramp

primary
#5F28B1
secondary
#A3C76E
accent
#E642A4
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F28B1

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

Preview Lab → · Contrast checker → · Palette generator →

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