#7D2A8E#7D2A8E

#7D2A8E is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.2% C 0.169 H 320.3°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#7D2A8E
RGBrgb(125, 42, 142)
HSLhsl(290, 54%, 36%)
HSVhsv(290, 70%, 56%)
CMYKcmyk(12%, 70.4%, 0%, 44.3%)
CIE-LABlab(33.92, 49.94, -38.61)
CIE-LCHlch(33.92, 63.12, 322.29°)
OKLaboklab(45.21% 0.1302 -0.108)
OKLCHoklch(45.21% 0.169 320.3)
XYZxyz(14.1673, 7.9696, 26.3780)
Luminance0.0797 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2A8E #3B8E2A
analogous
#4B2A8E #7D2A8E #8E2A6D
triadic
#7D2A8E #8E7D2A #2A8E7D
tetradic
#7D2A8E #8E4B2A #3B8E2A #2A6D8E
square
#7D2A8E #8E4B2A #3B8E2A #2A6D8E
split-complementary
#7D2A8E #6D8E2A #2A8E4B
monochromatic
#2A0E30 #531C5F #7D2A8E #A738BD #BE62D1

Accessibility & contrast

On white

8.10
#7D2A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D2A8E
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2A8E#FFFFFF#000000##FFFFFF
##7D2A8E1.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#014A91
Deuteranopia (green-blind)
#33538C
Tritanopia (blue-blind)
#7E3C59
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7d2a8e;
/* rgb */ color: rgb(125, 42, 142);
/* oklch */ color: oklch(45.2% 0.169 320.3);
Tailwind
colors: {
  custom: {
    50: '#a66baf',
    500: '#7d2a8e',
    950: '#000000',
  },
}
SCSS
$custom: #7d2a8e;
$custom-light: #a66baf;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2a8e",
  "rgb": {
    "r": 125,
    "g": 42,
    "b": 142
  },
  "hsl": {
    "h": 289.8,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.4521,
    "c": 0.16919,
    "h": 320.3
  },
  "luminance": 0.07969
}

Semantic roles & 50–950 ramp

primary
#7D2A8E
secondary
#6CB65D
accent
#DE4A63
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7D2A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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