#5F2278#5F2278

#5F2278 is a dark, vivid purple. Relative luminance 0.049; OKLCH L 38.5% C 0.145 H 314.3°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#5F2278
RGBrgb(95, 34, 120)
HSLhsl(283, 56%, 30%)
HSVhsv(283, 72%, 47%)
CMYKcmyk(20.8%, 71.7%, 0%, 52.9%)
CIE-LABlab(26.54, 41.79, -36.94)
CIE-LCHlch(26.54, 55.78, 318.53°)
OKLaboklab(38.51% 0.1016 -0.104)
OKLCHoklch(38.51% 0.145 314.3)
XYZxyz(8.6809, 4.9333, 18.2606)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2278 #3B7822
analogous
#342278 #5F2278 #782266
triadic
#5F2278 #785F22 #22785F
tetradic
#5F2278 #783422 #3B7822 #226678
square
#5F2278 #783422 #3B7822 #226678
split-complementary
#5F2278 #667822 #227834
monochromatic
#130719 #391448 #5F2278 #8530A8 #A649CB

Accessibility & contrast

On white

10.57
#5F2278 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#5F2278 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2278
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2278#FFFFFF#000000##FFFFFF
##5F22781.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7B
Deuteranopia (green-blind)
#1E4076
Tritanopia (blue-blind)
#5D334A
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5f2278;
/* rgb */ color: rgb(95, 34, 120);
/* oklch */ color: oklch(38.5% 0.145 314.3);
Tailwind
colors: {
  custom: {
    50: '#8f639f',
    500: '#5f2278',
    950: '#000000',
  },
}
SCSS
$custom: #5f2278;
$custom-light: #8f639f;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2278",
  "rgb": {
    "r": 95,
    "g": 34,
    "b": 120
  },
  "hsl": {
    "h": 282.558,
    "s": 55.844,
    "l": 30.196
  },
  "oklch": {
    "l": 0.38509,
    "c": 0.14545,
    "h": 314.3
  },
  "luminance": 0.04933
}

Semantic roles & 50–950 ramp

primary
#5F2278
secondary
#67AB4B
accent
#DF4974
background
#F9F6F9
surface
#F1EBF2
border
#CBC6CC
text
#0D050E
muted
#7E7A7E

Preview Lab

Preview with #5F2278

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

Preview Lab → · Contrast checker → · Palette generator →

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