#5F2279#5F2279

#5F2279 is a dark, vivid purple. Relative luminance 0.050; OKLCH L 38.6% C 0.146 H 313.9°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#5F2279
RGBrgb(95, 34, 121)
HSLhsl(282, 56%, 30%)
HSVhsv(282, 72%, 47%)
CMYKcmyk(21.5%, 71.9%, 0%, 52.5%)
CIE-LABlab(26.61, 42.02, -37.46)
CIE-LCHlch(26.61, 56.29, 318.28°)
OKLaboklab(38.58% 0.1016 -0.1056)
OKLCHoklch(38.58% 0.146 313.9)
XYZxyz(8.7419, 4.9577, 18.5819)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2279 #3C7922
analogous
#332279 #5F2279 #792267
triadic
#5F2279 #795F22 #22795F
tetradic
#5F2279 #793322 #3C7922 #226779
square
#5F2279 #793322 #3C7922 #226779
split-complementary
#5F2279 #677922 #227933
monochromatic
#140719 #391549 #5F2279 #852FA9 #A549CC

Accessibility & contrast

On white

10.55
#5F2279 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F2279
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2279#FFFFFF#000000##FFFFFF
##5F22791.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7C
Deuteranopia (green-blind)
#1D4077
Tritanopia (blue-blind)
#5D344B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5f2279;
/* rgb */ color: rgb(95, 34, 121);
/* oklch */ color: oklch(38.6% 0.146 313.9);
Tailwind
colors: {
  custom: {
    50: '#9063a0',
    500: '#5f2279',
    950: '#000000',
  },
}
SCSS
$custom: #5f2279;
$custom-light: #9063a0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2279",
  "rgb": {
    "r": 95,
    "g": 34,
    "b": 121
  },
  "hsl": {
    "h": 282.069,
    "s": 56.129,
    "l": 30.392
  },
  "oklch": {
    "l": 0.38582,
    "c": 0.14648,
    "h": 313.9
  },
  "luminance": 0.04957
}

Semantic roles & 50–950 ramp

primary
#5F2279
secondary
#68AC4B
accent
#DF4876
background
#F9F6F9
surface
#F1EBF2
border
#CBC6CC
text
#0D050F
muted
#7E7A7E

Preview Lab

Preview with #5F2279

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

Preview Lab → · Contrast checker → · Palette generator →

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