#7D2A88#7D2A88

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

Color values

HEX#7D2A88
RGBrgb(125, 42, 136)
HSLhsl(293, 53%, 35%)
HSVhsv(293, 69%, 53%)
CMYKcmyk(8.1%, 69.1%, 0%, 46.7%)
CIE-LABlab(33.55, 48.76, -35.50)
CIE-LCHlch(33.55, 60.31, 323.95°)
OKLaboklab(44.83% 0.1304 -0.0989)
OKLCHoklch(44.83% 0.164 322.8)
XYZxyz(13.7289, 7.7942, 24.0691)
Luminance0.0779 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2A88 #35882A
analogous
#4E2A88 #7D2A88 #882A64
triadic
#7D2A88 #887D2A #2A887D
tetradic
#7D2A88 #884E2A #35882A #2A6488
square
#7D2A88 #884E2A #35882A #2A6488
split-complementary
#7D2A88 #64882A #2A884E
monochromatic
#270D2A #521C59 #7D2A88 #A838B7 #C15FCE

Accessibility & contrast

On white

8.21
#7D2A88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D2A88
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2A88#FFFFFF#000000##FFFFFF
##7D2A881.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10498B
Deuteranopia (green-blind)
#385286
Tritanopia (blue-blind)
#7F3A55
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7d2a88;
/* rgb */ color: rgb(125, 42, 136);
/* oklch */ color: oklch(44.8% 0.164 322.8);
Tailwind
colors: {
  custom: {
    50: '#a66bab',
    500: '#7d2a88',
    950: '#000000',
  },
}
SCSS
$custom: #7d2a88;
$custom-light: #a66bab;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2a88",
  "rgb": {
    "r": 125,
    "g": 42,
    "b": 136
  },
  "hsl": {
    "h": 292.979,
    "s": 52.809,
    "l": 34.902
  },
  "oklch": {
    "l": 0.44826,
    "c": 0.16365,
    "h": 322.8
  },
  "luminance": 0.07793
}

Semantic roles & 50–950 ramp

primary
#7D2A88
secondary
#65B35B
accent
#DC4C5D
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7D2A88

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

Preview Lab → · Contrast checker → · Palette generator →

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