#5F28B0#5F28B0

#5F28B0 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.8% C 0.198 H 295.2°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#5F28B0
RGBrgb(95, 40, 176)
HSLhsl(264, 63%, 42%)
HSVhsv(264, 77%, 69%)
CMYKcmyk(46%, 77.3%, 0%, 31%)
CIE-LABlab(32.00, 52.77, -62.52)
CIE-LCHlch(32.00, 81.81, 310.17°)
OKLaboklab(43.77% 0.0844 -0.1792)
OKLCHoklch(43.77% 0.198 295.2)
XYZxyz(13.3125, 7.0847, 41.7320)
Luminance0.0708 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F28B0 #79B028
analogous
#2835B0 #5F28B0 #A328B0
triadic
#5F28B0 #B05F28 #28B05F
tetradic
#5F28B0 #B02835 #79B028 #28B0A3
square
#5F28B0 #B02835 #79B028 #28B0A3
split-complementary
#5F28B0 #B0A328 #35B028
monochromatic
#29114C #441D7E #5F28B0 #7D41D4 #9F73DF

Accessibility & contrast

On white

8.69
#5F28B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F28B0
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F28B0#FFFFFF#000000##FFFFFF
##5F28B01.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB4
Deuteranopia (green-blind)
#0049AD
Tritanopia (blue-blind)
#484D6B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5f28b0;
/* rgb */ color: rgb(95, 40, 176);
/* oklch */ color: oklch(43.8% 0.198 295.2);
Tailwind
colors: {
  custom: {
    50: '#9468c9',
    500: '#5f28b0',
    950: '#000000',
  },
}
SCSS
$custom: #5f28b0;
$custom-light: #9468c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f28b0",
  "rgb": {
    "r": 95,
    "g": 40,
    "b": 176
  },
  "hsl": {
    "h": 264.265,
    "s": 62.963,
    "l": 42.353
  },
  "oklch": {
    "l": 0.4377,
    "c": 0.19809,
    "h": 295.2
  },
  "luminance": 0.07085
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F28B0

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

Preview Lab → · Contrast checker → · Palette generator →

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