#5F277A#5F277A

#5F277A is a dark, vivid purple. Relative luminance 0.053; OKLCH L 39.3% C 0.140 H 312.8°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#5F277A
RGBrgb(95, 39, 122)
HSLhsl(280, 52%, 32%)
HSVhsv(280, 68%, 48%)
CMYKcmyk(22.1%, 68%, 0%, 52.2%)
CIE-LABlab(27.54, 39.85, -36.60)
CIE-LCHlch(27.54, 54.11, 317.43°)
OKLaboklab(39.27% 0.0955 -0.1031)
OKLCHoklch(39.27% 0.14 312.8)
XYZxyz(8.9571, 5.2893, 18.9577)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F277A #427A27
analogous
#36277A #5F277A #7A276C
triadic
#5F277A #7A5F27 #277A5F
tetradic
#5F277A #7A3627 #427A27 #276C7A
square
#5F277A #7A3627 #427A27 #276C7A
split-complementary
#5F277A #6C7A27 #277A36
monochromatic
#17091D #3B184C #5F277A #8336A8 #A253C8

Accessibility & contrast

On white

10.21
#5F277A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#5F277A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F277A
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F277A#FFFFFF#000000##FFFFFF
##5F277A1.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7D
Deuteranopia (green-blind)
#214278
Tritanopia (blue-blind)
#5C374D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5f277a;
/* rgb */ color: rgb(95, 39, 122);
/* oklch */ color: oklch(39.3% 0.140 312.8);
Tailwind
colors: {
  custom: {
    50: '#8f65a1',
    500: '#5f277a',
    950: '#000000',
  },
}
SCSS
$custom: #5f277a;
$custom-light: #8f65a1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f277a",
  "rgb": {
    "r": 95,
    "g": 39,
    "b": 122
  },
  "hsl": {
    "h": 280.482,
    "s": 51.553,
    "l": 31.569
  },
  "oklch": {
    "l": 0.39271,
    "c": 0.14049,
    "h": 312.8
  },
  "luminance": 0.05289
}

Semantic roles & 50–950 ramp

primary
#5F277A
secondary
#6EAC51
accent
#DB4D7B
background
#F9F6F9
surface
#F1EBF2
border
#CBC6CC
text
#0D060F
muted
#7E7A7E

Preview Lab

Preview with #5F277A

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

Preview Lab → · Contrast checker → · Palette generator →

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