#7F2887#7F2887

#7F2887 is a dark, vivid purple. Relative luminance 0.078; OKLCH L 44.8% C 0.166 H 324.3°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#7F2887
RGBrgb(127, 40, 135)
HSLhsl(295, 54%, 34%)
HSVhsv(295, 70%, 53%)
CMYKcmyk(5.9%, 70.4%, 0%, 47.1%)
CIE-LABlab(33.52, 49.88, -34.91)
CIE-LCHlch(33.52, 60.88, 325.01°)
OKLaboklab(44.85% 0.1351 -0.0971)
OKLCHoklch(44.85% 0.166 324.3)
XYZxyz(13.8840, 7.7797, 23.6873)
Luminance0.0778 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2887 #308728
analogous
#502887 #7F2887 #872860
triadic
#7F2887 #877F28 #28877F
tetradic
#7F2887 #875028 #308728 #286087
square
#7F2887 #875028 #308728 #286087
split-complementary
#7F2887 #608728 #288750
monochromatic
#260C29 #531A58 #7F2887 #AB36B6 #C55BCE

Accessibility & contrast

On white

8.22
#7F2887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#7F2887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2887
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2887#FFFFFF#000000##FFFFFF
##7F28871.008.222.568.22
#FFFFFF8.221.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10488A
Deuteranopia (green-blind)
#395285
Tritanopia (blue-blind)
#823754
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7f2887;
/* rgb */ color: rgb(127, 40, 135);
/* oklch */ color: oklch(44.8% 0.166 324.3);
Tailwind
colors: {
  custom: {
    50: '#a76aaa',
    500: '#7f2887',
    950: '#000000',
  },
}
SCSS
$custom: #7f2887;
$custom-light: #a76aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2887",
  "rgb": {
    "r": 127,
    "g": 40,
    "b": 135
  },
  "hsl": {
    "h": 294.947,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.44849,
    "c": 0.16636,
    "h": 324.3
  },
  "luminance": 0.07779
}

Semantic roles & 50–950 ramp

primary
#7F2887
secondary
#5FB457
accent
#DE4A57
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F2887

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

Preview Lab → · Contrast checker → · Palette generator →

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