#7D2A8B#7D2A8B

#7D2A8B is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.0% C 0.166 H 321.6°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#7D2A8B
RGBrgb(125, 42, 139)
HSLhsl(291, 54%, 35%)
HSVhsv(291, 70%, 55%)
CMYKcmyk(10.1%, 69.8%, 0%, 45.5%)
CIE-LABlab(33.73, 49.35, -37.06)
CIE-LCHlch(33.73, 61.71, 323.09°)
OKLaboklab(45.02% 0.1303 -0.1035)
OKLCHoklch(45.02% 0.166 321.6)
XYZxyz(13.9451, 7.8807, 25.2077)
Luminance0.0788 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2A8B #388B2A
analogous
#4C2A8B #7D2A8B #8B2A68
triadic
#7D2A8B #8B7D2A #2A8B7D
tetradic
#7D2A8B #8B4C2A #388B2A #2A688B
square
#7D2A8B #8B4C2A #388B2A #2A688B
split-complementary
#7D2A8B #688B2A #2A8B4C
monochromatic
#280E2D #531C5C #7D2A8B #A738BA #BF60CF

Accessibility & contrast

On white

8.15
#7D2A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7D2A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2A8B
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2A8B#FFFFFF#000000##FFFFFF
##7D2A8B1.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09498E
Deuteranopia (green-blind)
#365289
Tritanopia (blue-blind)
#7E3B57
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7d2a8b;
/* rgb */ color: rgb(125, 42, 139);
/* oklch */ color: oklch(45.0% 0.166 321.6);
Tailwind
colors: {
  custom: {
    50: '#a66bad',
    500: '#7d2a8b',
    950: '#000000',
  },
}
SCSS
$custom: #7d2a8b;
$custom-light: #a66bad;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2a8b",
  "rgb": {
    "r": 125,
    "g": 42,
    "b": 139
  },
  "hsl": {
    "h": 291.34,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.45016,
    "c": 0.16641,
    "h": 321.6
  },
  "luminance": 0.0788
}

Semantic roles & 50–950 ramp

primary
#7D2A8B
secondary
#69B55C
accent
#DD4B60
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7D2A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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