#7D2987#7D2987

#7D2987 is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.7% C 0.164 H 323.3°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#7D2987
RGBrgb(125, 41, 135)
HSLhsl(294, 53%, 35%)
HSVhsv(294, 70%, 53%)
CMYKcmyk(7.4%, 69.6%, 0%, 47.1%)
CIE-LABlab(33.34, 48.99, -35.21)
CIE-LCHlch(33.34, 60.33, 324.29°)
OKLaboklab(44.66% 0.1315 -0.0981)
OKLCHoklch(44.66% 0.164 323.3)
XYZxyz(13.6231, 7.6959, 23.6849)
Luminance0.0770 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2987 #338729
analogous
#4E2987 #7D2987 #872962
triadic
#7D2987 #877D29 #29877D
tetradic
#7D2987 #874E29 #338729 #296287
square
#7D2987 #874E29 #338729 #296287
split-complementary
#7D2987 #628729 #29874E
monochromatic
#260C29 #521B58 #7D2987 #A837B6 #C25DCE

Accessibility & contrast

On white

8.27
#7D2987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#7D2987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2987
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2987#FFFFFF#000000##FFFFFF
##7D29871.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F488A
Deuteranopia (green-blind)
#385285
Tritanopia (blue-blind)
#7F3955
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7d2987;
/* rgb */ color: rgb(125, 41, 135);
/* oklch */ color: oklch(44.7% 0.164 323.3);
Tailwind
colors: {
  custom: {
    50: '#a66aaa',
    500: '#7d2987',
    950: '#000000',
  },
}
SCSS
$custom: #7d2987;
$custom-light: #a66aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2987",
  "rgb": {
    "r": 125,
    "g": 41,
    "b": 135
  },
  "hsl": {
    "h": 293.617,
    "s": 53.409,
    "l": 34.51
  },
  "oklch": {
    "l": 0.44656,
    "c": 0.16407,
    "h": 323.3
  },
  "luminance": 0.07695
}

Semantic roles & 50–950 ramp

primary
#7D2987
secondary
#62B359
accent
#DD4B5B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7D2987

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

Preview Lab → · Contrast checker → · Palette generator →

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