#5F28A2#5F28A2

#5F28A2 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.5% C 0.183 H 298.8°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#5F28A2
RGBrgb(95, 40, 162)
HSLhsl(267, 60%, 40%)
HSVhsv(267, 75%, 64%)
CMYKcmyk(41.4%, 75.3%, 0%, 36.5%)
CIE-LABlab(30.78, 49.18, -56.10)
CIE-LCHlch(30.78, 74.60, 311.24°)
OKLaboklab(42.54% 0.0881 -0.1604)
OKLCHoklch(42.54% 0.183 298.8)
XYZxyz(11.9980, 6.5589, 34.8093)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F28A2 #6BA228
analogous
#282EA2 #5F28A2 #9C28A2
triadic
#5F28A2 #A25F28 #28A25F
tetradic
#5F28A2 #A2282E #6BA228 #28A29C
square
#5F28A2 #A2282E #6BA228 #28A29C
split-complementary
#5F28A2 #A29C28 #2EA228
monochromatic
#251040 #421C71 #5F28A2 #7C39CE #9D6ADA

Accessibility & contrast

On white

9.08
#5F28A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#5F28A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F28A2
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F28A2#FFFFFF#000000##FFFFFF
##5F28A21.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A5
Deuteranopia (green-blind)
#0047A0
Tritanopia (blue-blind)
#4F4863
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5f28a2;
/* rgb */ color: rgb(95, 40, 162);
/* oklch */ color: oklch(42.5% 0.183 298.8);
Tailwind
colors: {
  custom: {
    50: '#9368be',
    500: '#5f28a2',
    950: '#000000',
  },
}
SCSS
$custom: #5f28a2;
$custom-light: #9368be;
$custom-dark: #000000;
JSON
{
  "hex": "#5f28a2",
  "rgb": {
    "r": 95,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 267.049,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.4254,
    "c": 0.18294,
    "h": 298.8
  },
  "luminance": 0.06559
}

Semantic roles & 50–950 ramp

primary
#5F28A2
secondary
#97C165
accent
#E4449C
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F28A2

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

Preview Lab → · Contrast checker → · Palette generator →

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