#7D2A8D#7D2A8D

#7D2A8D is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.1% C 0.168 H 320.7°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#7D2A8D
RGBrgb(125, 42, 141)
HSLhsl(290, 54%, 36%)
HSVhsv(290, 70%, 55%)
CMYKcmyk(11.3%, 70.2%, 0%, 44.7%)
CIE-LABlab(33.86, 49.74, -38.09)
CIE-LCHlch(33.86, 62.65, 322.55°)
OKLaboklab(45.15% 0.1303 -0.1065)
OKLCHoklch(45.15% 0.168 320.7)
XYZxyz(14.0926, 7.9397, 25.9843)
Luminance0.0794 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2A8D #3A8D2A
analogous
#4B2A8D #7D2A8D #8D2A6B
triadic
#7D2A8D #8D7D2A #2A8D7D
tetradic
#7D2A8D #8D4B2A #3A8D2A #2A6B8D
square
#7D2A8D #8D4B2A #3A8D2A #2A6B8D
split-complementary
#7D2A8D #6B8D2A #2A8D4B
monochromatic
#290E2F #531C5E #7D2A8D #A738BC #BE61D0

Accessibility & contrast

On white

8.12
#7D2A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#7D2A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2A8D
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2A8D#FFFFFF#000000##FFFFFF
##7D2A8D1.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#034A90
Deuteranopia (green-blind)
#34538B
Tritanopia (blue-blind)
#7E3C58
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7d2a8d;
/* rgb */ color: rgb(125, 42, 141);
/* oklch */ color: oklch(45.1% 0.168 320.7);
Tailwind
colors: {
  custom: {
    50: '#a66baf',
    500: '#7d2a8d',
    950: '#000000',
  },
}
SCSS
$custom: #7d2a8d;
$custom-light: #a66baf;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2a8d",
  "rgb": {
    "r": 125,
    "g": 42,
    "b": 141
  },
  "hsl": {
    "h": 290.303,
    "s": 54.098,
    "l": 35.882
  },
  "oklch": {
    "l": 0.45145,
    "c": 0.16826,
    "h": 320.7
  },
  "luminance": 0.07939
}

Semantic roles & 50–950 ramp

primary
#7D2A8D
secondary
#6BB65D
accent
#DD4A62
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7D2A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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