#7D2E96#7D2E96

#7D2E96 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.2% C 0.172 H 316.9°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#7D2E96
RGBrgb(125, 46, 150)
HSLhsl(286, 53%, 38%)
HSVhsv(286, 69%, 59%)
CMYKcmyk(16.7%, 69.3%, 0%, 41.2%)
CIE-LABlab(35.04, 49.85, -41.72)
CIE-LCHlch(35.04, 65.00, 320.07°)
OKLaboklab(46.17% 0.1253 -0.1171)
OKLCHoklch(46.17% 0.172 316.9)
XYZxyz(14.9386, 8.5166, 29.7052)
Luminance0.0852 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2E96 #47962E
analogous
#492E96 #7D2E96 #962E7B
triadic
#7D2E96 #967D2E #2E967D
tetradic
#7D2E96 #96492E #47962E #2E7B96
square
#7D2E96 #96492E #47962E #2E7B96
split-complementary
#7D2E96 #7B962E #2E9649
monochromatic
#2F1138 #562067 #7D2E96 #A33EC4 #BA6CD2

Accessibility & contrast

On white

7.77
#7D2E96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#7D2E96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2E96
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2E96#FFFFFF#000000##FFFFFF
##7D2E961.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E99
Deuteranopia (green-blind)
#305594
Tritanopia (blue-blind)
#7C425E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7d2e96;
/* rgb */ color: rgb(125, 46, 150);
/* oklch */ color: oklch(46.2% 0.172 316.9);
Tailwind
colors: {
  custom: {
    50: '#a66db5',
    500: '#7d2e96',
    950: '#000000',
  },
}
SCSS
$custom: #7d2e96;
$custom-light: #a66db5;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2e96",
  "rgb": {
    "r": 125,
    "g": 46,
    "b": 150
  },
  "hsl": {
    "h": 285.577,
    "s": 53.061,
    "l": 38.431
  },
  "oklch": {
    "l": 0.46173,
    "c": 0.17154,
    "h": 316.9
  },
  "luminance": 0.08516
}

Semantic roles & 50–950 ramp

primary
#7D2E96
secondary
#7AB967
accent
#DC4B6E
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7D2E96

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

Preview Lab → · Contrast checker → · Palette generator →

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