#5F277D#5F277D

#5F277D is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.5% C 0.144 H 311.5°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#5F277D
RGBrgb(95, 39, 125)
HSLhsl(279, 52%, 32%)
HSVhsv(279, 69%, 49%)
CMYKcmyk(24%, 68.8%, 0%, 51%)
CIE-LABlab(27.75, 40.54, -38.17)
CIE-LCHlch(27.75, 55.68, 316.73°)
OKLaboklab(39.49% 0.0953 -0.1077)
OKLCHoklch(39.49% 0.144 311.5)
XYZxyz(9.1458, 5.3648, 19.9518)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F277D #457D27
analogous
#34277D #5F277D #7D2770
triadic
#5F277D #7D5F27 #277D5F
tetradic
#5F277D #7D3427 #457D27 #27707D
square
#5F277D #7D3427 #457D27 #27707D
split-complementary
#5F277D #707D27 #277D34
monochromatic
#180A20 #3C184E #5F277D #8236AC #A155CA

Accessibility & contrast

On white

10.13
#5F277D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#5F277D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F277D
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F277D#FFFFFF#000000##FFFFFF
##5F277D1.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F80
Deuteranopia (green-blind)
#1E437B
Tritanopia (blue-blind)
#5B384E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5f277d;
/* rgb */ color: rgb(95, 39, 125);
/* oklch */ color: oklch(39.5% 0.144 311.5);
Tailwind
colors: {
  custom: {
    50: '#8f66a3',
    500: '#5f277d',
    950: '#000000',
  },
}
SCSS
$custom: #5f277d;
$custom-light: #8f66a3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f277d",
  "rgb": {
    "r": 95,
    "g": 39,
    "b": 125
  },
  "hsl": {
    "h": 279.07,
    "s": 52.439,
    "l": 32.157
  },
  "oklch": {
    "l": 0.39485,
    "c": 0.14376,
    "h": 311.5
  },
  "luminance": 0.05365
}

Semantic roles & 50–950 ramp

primary
#5F277D
secondary
#72AF51
accent
#DC4C7E
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D060F
muted
#7E7A7F

Preview Lab

Preview with #5F277D

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

Preview Lab → · Contrast checker → · Palette generator →

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