#7F287D#7F287D

#7F287D is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.2% C 0.158 H 328.8°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#7F287D
RGBrgb(127, 40, 125)
HSLhsl(301, 52%, 33%)
HSVhsv(301, 69%, 50%)
CMYKcmyk(0%, 68.5%, 1.6%, 50.2%)
CIE-LABlab(32.94, 48.05, -29.59)
CIE-LCHlch(32.94, 56.43, 328.37°)
OKLaboklab(44.25% 0.1349 -0.0817)
OKLCHoklch(44.25% 0.158 328.8)
XYZxyz(13.2127, 7.5112, 20.1520)
Luminance0.0751 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F287D #287F2A
analogous
#55287F #7F287D #7F2852
triadic
#7F287D #7D7F28 #287D7F
tetradic
#7F287D #7F5528 #287F2A #28527F
square
#7F287D #7F5528 #287F2A #28527F
split-complementary
#7F287D #527F28 #287F55
monochromatic
#220B21 #50194F #7F287D #AE37AB #CA57C8

Accessibility & contrast

On white

8.39
#7F287D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#7F287D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F287D
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F287D#FFFFFF#000000##FFFFFF
##7F287D1.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E467F
Deuteranopia (green-blind)
#3F527B
Tritanopia (blue-blind)
#83334F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7f287d;
/* rgb */ color: rgb(127, 40, 125);
/* oklch */ color: oklch(44.2% 0.158 328.8);
Tailwind
colors: {
  custom: {
    50: '#a76aa3',
    500: '#7f287d',
    950: '#000000',
  },
}
SCSS
$custom: #7f287d;
$custom-light: #a76aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f287d",
  "rgb": {
    "r": 127,
    "g": 40,
    "b": 125
  },
  "hsl": {
    "h": 301.379,
    "s": 52.096,
    "l": 32.745
  },
  "oklch": {
    "l": 0.44248,
    "c": 0.15766,
    "h": 328.8
  },
  "luminance": 0.0751
}

Semantic roles & 50–950 ramp

primary
#7F287D
secondary
#54AF56
accent
#DC504C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7F287D

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

Preview Lab → · Contrast checker → · Palette generator →

#7F287D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva