#7F2987#7F2987

#7F2987 is a dark, vivid purple. Relative luminance 0.078; OKLCH L 45.0% C 0.165 H 324.2°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#7F2987
RGBrgb(127, 41, 135)
HSLhsl(295, 53%, 35%)
HSVhsv(295, 70%, 53%)
CMYKcmyk(5.9%, 69.6%, 0%, 47.1%)
CIE-LABlab(33.66, 49.47, -34.68)
CIE-LCHlch(33.66, 60.42, 324.97°)
OKLaboklab(44.95% 0.134 -0.0965)
OKLCHoklch(44.95% 0.165 324.2)
XYZxyz(13.9181, 7.8480, 23.6987)
Luminance0.0785 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2987 #318729
analogous
#502987 #7F2987 #872960
triadic
#7F2987 #877F29 #29877F
tetradic
#7F2987 #875029 #318729 #296087
square
#7F2987 #875029 #318729 #296087
split-complementary
#7F2987 #608729 #298750
monochromatic
#270C29 #531B58 #7F2987 #AB37B6 #C45DCE

Accessibility & contrast

On white

8.17
#7F2987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7F2987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2987
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2987#FFFFFF#000000##FFFFFF
##7F29871.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12498A
Deuteranopia (green-blind)
#3A5385
Tritanopia (blue-blind)
#823855
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7f2987;
/* rgb */ color: rgb(127, 41, 135);
/* oklch */ color: oklch(45.0% 0.165 324.2);
Tailwind
colors: {
  custom: {
    50: '#a76baa',
    500: '#7f2987',
    950: '#000000',
  },
}
SCSS
$custom: #7f2987;
$custom-light: #a76baa;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2987",
  "rgb": {
    "r": 127,
    "g": 41,
    "b": 135
  },
  "hsl": {
    "h": 294.894,
    "s": 53.409,
    "l": 34.51
  },
  "oklch": {
    "l": 0.44953,
    "c": 0.16507,
    "h": 324.2
  },
  "luminance": 0.07847
}

Semantic roles & 50–950 ramp

primary
#7F2987
secondary
#60B359
accent
#DD4B57
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F2987

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

Preview Lab → · Contrast checker → · Palette generator →

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