#7D2A96#7D2A96

#7D2A96 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.7% C 0.177 H 317.2°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#7D2A96
RGBrgb(125, 42, 150)
HSLhsl(286, 56%, 38%)
HSVhsv(286, 72%, 59%)
CMYKcmyk(16.7%, 72%, 0%, 41.2%)
CIE-LABlab(34.43, 51.54, -42.69)
CIE-LCHlch(34.43, 66.93, 320.37°)
OKLaboklab(45.74% 0.1297 -0.1199)
OKLCHoklch(45.74% 0.177 317.2)
XYZxyz(14.7896, 8.2185, 29.6555)
Luminance0.0822 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2A96 #43962A
analogous
#472A96 #7D2A96 #962A79
triadic
#7D2A96 #967D2A #2A967D
tetradic
#7D2A96 #96472A #43962A #2A7996
square
#7D2A96 #96472A #43962A #2A7996
split-complementary
#7D2A96 #79962A #2A9647
monochromatic
#2D0F36 #551D66 #7D2A96 #A537C6 #BB66D4

Accessibility & contrast

On white

7.94
#7D2A96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#7D2A96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2A96
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2A96#FFFFFF#000000##FFFFFF
##7D2A961.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C99
Deuteranopia (green-blind)
#2D5394
Tritanopia (blue-blind)
#7C405D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7d2a96;
/* rgb */ color: rgb(125, 42, 150);
/* oklch */ color: oklch(45.7% 0.177 317.2);
Tailwind
colors: {
  custom: {
    50: '#a66bb5',
    500: '#7d2a96',
    950: '#000000',
  },
}
SCSS
$custom: #7d2a96;
$custom-light: #a66bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2a96",
  "rgb": {
    "r": 125,
    "g": 42,
    "b": 150
  },
  "hsl": {
    "h": 286.111,
    "s": 56.25,
    "l": 37.647
  },
  "oklch": {
    "l": 0.45742,
    "c": 0.17666,
    "h": 317.2
  },
  "luminance": 0.08218
}

Semantic roles & 50–950 ramp

primary
#7D2A96
secondary
#76BA61
accent
#E0486B
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7D2A96

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

Preview Lab → · Contrast checker → · Palette generator →

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