#7D2A87#7D2A87

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

Color values

HEX#7D2A87
RGBrgb(125, 42, 135)
HSLhsl(294, 53%, 35%)
HSVhsv(294, 69%, 53%)
CMYKcmyk(7.4%, 68.9%, 0%, 47.1%)
CIE-LABlab(33.49, 48.57, -34.97)
CIE-LCHlch(33.49, 59.85, 324.24°)
OKLaboklab(44.76% 0.1304 -0.0974)
OKLCHoklch(44.76% 0.163 323.2)
XYZxyz(13.6582, 7.7660, 23.6965)
Luminance0.0776 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2A87 #34872A
analogous
#4E2A87 #7D2A87 #872A63
triadic
#7D2A87 #877D2A #2A877D
tetradic
#7D2A87 #874E2A #34872A #2A6387
square
#7D2A87 #874E2A #34872A #2A6387
split-complementary
#7D2A87 #63872A #2A874E
monochromatic
#270D2A #521B58 #7D2A87 #A839B6 #C15ECD

Accessibility & contrast

On white

8.23
#7D2A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#7D2A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2A87
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2A87#FFFFFF#000000##FFFFFF
##7D2A871.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12498A
Deuteranopia (green-blind)
#385285
Tritanopia (blue-blind)
#7F3955
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7d2a87;
/* rgb */ color: rgb(125, 42, 135);
/* oklch */ color: oklch(44.8% 0.163 323.2);
Tailwind
colors: {
  custom: {
    50: '#a66baa',
    500: '#7d2a87',
    950: '#000000',
  },
}
SCSS
$custom: #7d2a87;
$custom-light: #a66baa;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2a87",
  "rgb": {
    "r": 125,
    "g": 42,
    "b": 135
  },
  "hsl": {
    "h": 293.548,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.44764,
    "c": 0.16275,
    "h": 323.2
  },
  "luminance": 0.07765
}

Semantic roles & 50–950 ramp

primary
#7D2A87
secondary
#64B35A
accent
#DC4C5B
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7D2A87

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

Preview Lab → · Contrast checker → · Palette generator →

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