#7D2A8F#7D2A8F

#7D2A8F is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.3% C 0.170 H 319.9°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#7D2A8F
RGBrgb(125, 42, 143)
HSLhsl(289, 55%, 36%)
HSVhsv(289, 71%, 56%)
CMYKcmyk(12.6%, 70.6%, 0%, 43.9%)
CIE-LABlab(33.98, 50.13, -39.12)
CIE-LCHlch(33.98, 63.59, 322.03°)
OKLaboklab(45.28% 0.1302 -0.1095)
OKLCHoklch(45.28% 0.17 319.9)
XYZxyz(14.2427, 7.9998, 26.7752)
Luminance0.0800 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2A8F #3C8F2A
analogous
#4B2A8F #7D2A8F #8F2A6F
triadic
#7D2A8F #8F7D2A #2A8F7D
tetradic
#7D2A8F #8F4B2A #3C8F2A #2A6F8F
square
#7D2A8F #8F4B2A #3C8F2A #2A6F8F
split-complementary
#7D2A8F #6F8F2A #2A8F4B
monochromatic
#2A0E30 #541C60 #7D2A8F #A638BE #BD62D1

Accessibility & contrast

On white

8.08
#7D2A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#7D2A8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2A8F
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2A8F#FFFFFF#000000##FFFFFF
##7D2A8F1.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A92
Deuteranopia (green-blind)
#33538D
Tritanopia (blue-blind)
#7D3D59
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7d2a8f;
/* rgb */ color: rgb(125, 42, 143);
/* oklch */ color: oklch(45.3% 0.170 319.9);
Tailwind
colors: {
  custom: {
    50: '#a66bb0',
    500: '#7d2a8f',
    950: '#000000',
  },
}
SCSS
$custom: #7d2a8f;
$custom-light: #a66bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2a8f",
  "rgb": {
    "r": 125,
    "g": 42,
    "b": 143
  },
  "hsl": {
    "h": 289.307,
    "s": 54.595,
    "l": 36.275
  },
  "oklch": {
    "l": 0.45275,
    "c": 0.17012,
    "h": 319.9
  },
  "luminance": 0.07999
}

Semantic roles & 50–950 ramp

primary
#7D2A8F
secondary
#6EB75E
accent
#DE4A64
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7D2A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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