#7D2A98#7D2A98

#7D2A98 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.9% C 0.179 H 316.5°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#7D2A98
RGBrgb(125, 42, 152)
HSLhsl(285, 57%, 38%)
HSVhsv(285, 72%, 60%)
CMYKcmyk(17.8%, 72.4%, 0%, 40.4%)
CIE-LABlab(34.57, 51.95, -43.69)
CIE-LCHlch(34.57, 67.88, 319.94°)
OKLaboklab(45.88% 0.1295 -0.1229)
OKLCHoklch(45.88% 0.179 316.5)
XYZxyz(14.9520, 8.2835, 30.5109)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2A98 #45982A
analogous
#462A98 #7D2A98 #982A7C
triadic
#7D2A98 #987D2A #2A987D
tetradic
#7D2A98 #98462A #45982A #2A7C98
square
#7D2A98 #98462A #45982A #2A7C98
split-complementary
#7D2A98 #7C982A #2A9846
monochromatic
#2E1038 #561D68 #7D2A98 #A437C8 #BA67D5

Accessibility & contrast

On white

7.90
#7D2A98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#7D2A98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2A98
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2A98#FFFFFF#000000##FFFFFF
##7D2A981.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9B
Deuteranopia (green-blind)
#2B5496
Tritanopia (blue-blind)
#7B405E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7d2a98;
/* rgb */ color: rgb(125, 42, 152);
/* oklch */ color: oklch(45.9% 0.179 316.5);
Tailwind
colors: {
  custom: {
    50: '#a66bb7',
    500: '#7d2a98',
    950: '#000000',
  },
}
SCSS
$custom: #7d2a98;
$custom-light: #a66bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2a98",
  "rgb": {
    "r": 125,
    "g": 42,
    "b": 152
  },
  "hsl": {
    "h": 285.273,
    "s": 56.701,
    "l": 38.039
  },
  "oklch": {
    "l": 0.45879,
    "c": 0.17854,
    "h": 316.5
  },
  "luminance": 0.08283
}

Semantic roles & 50–950 ramp

primary
#7D2A98
secondary
#78BB62
accent
#E0486D
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7D2A98

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

Preview Lab → · Contrast checker → · Palette generator →

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