#7D2896#7D2896

#7D2896 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.5% C 0.179 H 317.4°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#7D2896
RGBrgb(125, 40, 150)
HSLhsl(286, 58%, 37%)
HSVhsv(286, 73%, 59%)
CMYKcmyk(16.7%, 73.3%, 0%, 41.2%)
CIE-LABlab(34.15, 52.35, -43.14)
CIE-LCHlch(34.15, 67.84, 320.51°)
OKLaboklab(45.54% 0.1318 -0.1213)
OKLCHoklch(45.54% 0.179 317.4)
XYZxyz(14.7205, 8.0802, 29.6325)
Luminance0.0808 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2896 #419628
analogous
#462896 #7D2896 #962878
triadic
#7D2896 #967D28 #28967D
tetradic
#7D2896 #964628 #419628 #287896
square
#7D2896 #964628 #419628 #287896
split-complementary
#7D2896 #789628 #289646
monochromatic
#2C0E35 #551B66 #7D2896 #A535C6 #BB63D5

Accessibility & contrast

On white

8.03
#7D2896 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#7D2896 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2896
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2896#FFFFFF#000000##FFFFFF
##7D28961.008.032.628.03
#FFFFFF8.031.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B99
Deuteranopia (green-blind)
#2B5394
Tritanopia (blue-blind)
#7C3E5D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7d2896;
/* rgb */ color: rgb(125, 40, 150);
/* oklch */ color: oklch(45.5% 0.179 317.4);
Tailwind
colors: {
  custom: {
    50: '#a66ab5',
    500: '#7d2896',
    950: '#000000',
  },
}
SCSS
$custom: #7d2896;
$custom-light: #a66ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2896",
  "rgb": {
    "r": 125,
    "g": 40,
    "b": 150
  },
  "hsl": {
    "h": 286.364,
    "s": 57.895,
    "l": 37.255
  },
  "oklch": {
    "l": 0.4554,
    "c": 0.1791,
    "h": 317.4
  },
  "luminance": 0.0808
}

Semantic roles & 50–950 ramp

primary
#7D2896
secondary
#74BB5F
accent
#E1476A
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7D2896

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

Preview Lab → · Contrast checker → · Palette generator →

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