#7D2996#7D2996

#7D2996 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.6% C 0.178 H 317.3°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#7D2996
RGBrgb(125, 41, 150)
HSLhsl(286, 57%, 37%)
HSVhsv(286, 73%, 59%)
CMYKcmyk(16.7%, 72.7%, 0%, 41.2%)
CIE-LABlab(34.29, 51.95, -42.92)
CIE-LCHlch(34.29, 67.39, 320.44°)
OKLaboklab(45.64% 0.1308 -0.1206)
OKLCHoklch(45.64% 0.178 317.3)
XYZxyz(14.7546, 8.1485, 29.6439)
Luminance0.0815 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2996 #429629
analogous
#472996 #7D2996 #962978
triadic
#7D2996 #967D29 #29967D
tetradic
#7D2996 #964729 #429629 #297896
square
#7D2996 #964729 #429629 #297896
split-complementary
#7D2996 #789629 #299647
monochromatic
#2D0F36 #551C66 #7D2996 #A536C6 #BB65D5

Accessibility & contrast

On white

7.99
#7D2996 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#7D2996 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2996
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2996#FFFFFF#000000##FFFFFF
##7D29961.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B99
Deuteranopia (green-blind)
#2C5394
Tritanopia (blue-blind)
#7C3F5D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7d2996;
/* rgb */ color: rgb(125, 41, 150);
/* oklch */ color: oklch(45.6% 0.178 317.3);
Tailwind
colors: {
  custom: {
    50: '#a66bb5',
    500: '#7d2996',
    950: '#000000',
  },
}
SCSS
$custom: #7d2996;
$custom-light: #a66bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2996",
  "rgb": {
    "r": 125,
    "g": 41,
    "b": 150
  },
  "hsl": {
    "h": 286.239,
    "s": 57.068,
    "l": 37.451
  },
  "oklch": {
    "l": 0.4564,
    "c": 0.17789,
    "h": 317.3
  },
  "luminance": 0.08148
}

Semantic roles & 50–950 ramp

primary
#7D2996
secondary
#75BB60
accent
#E0476B
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7D2996

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

Preview Lab → · Contrast checker → · Palette generator →

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