#5F28BB#5F28BB

#5F28BB is a dark, highly saturated violet. Relative luminance 0.075; OKLCH L 44.8% C 0.210 H 292.8°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#5F28BB
RGBrgb(95, 40, 187)
HSLhsl(262, 65%, 45%)
HSVhsv(262, 79%, 73%)
CMYKcmyk(49.2%, 78.6%, 0%, 26.7%)
CIE-LABlab(33.00, 55.62, -67.41)
CIE-LCHlch(33.00, 87.39, 309.52°)
OKLaboklab(44.78% 0.0812 -0.1935)
OKLCHoklch(44.78% 0.21 292.8)
XYZxyz(14.4452, 7.5378, 47.6979)
Luminance0.0754 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F28BB #84BB28
analogous
#283ABB #5F28BB #A928BB
triadic
#5F28BB #BB5F28 #28BB5F
tetradic
#5F28BB #BB283A #84BB28 #28BBA9
square
#5F28BB #BB283A #84BB28 #28BBA9
split-complementary
#5F28BB #BBA928 #3ABB28
monochromatic
#2C1256 #451D89 #5F28BB #7E48D8 #A27BE3

Accessibility & contrast

On white

8.37
#5F28BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#5F28BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F28BB
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F28BB#FFFFFF#000000##FFFFFF
##5F28BB1.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBF
Deuteranopia (green-blind)
#004BB8
Tritanopia (blue-blind)
#415271
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5f28bb;
/* rgb */ color: rgb(95, 40, 187);
/* oklch */ color: oklch(44.8% 0.210 292.8);
Tailwind
colors: {
  custom: {
    50: '#9669d1',
    500: '#5f28bb',
    950: '#000000',
  },
}
SCSS
$custom: #5f28bb;
$custom-light: #9669d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f28bb",
  "rgb": {
    "r": 95,
    "g": 40,
    "b": 187
  },
  "hsl": {
    "h": 262.449,
    "s": 64.758,
    "l": 44.51
  },
  "oklch": {
    "l": 0.44775,
    "c": 0.20988,
    "h": 292.8
  },
  "luminance": 0.07538
}

Semantic roles & 50–950 ramp

primary
#5F28BB
secondary
#AACB74
accent
#E840A9
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5F28BB

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

Preview Lab → · Contrast checker → · Palette generator →

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