#7D2796#7D2796

#7D2796 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.4% C 0.180 H 317.5°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#7D2796
RGBrgb(125, 39, 150)
HSLhsl(286, 59%, 37%)
HSVhsv(286, 74%, 59%)
CMYKcmyk(16.7%, 74%, 0%, 41.2%)
CIE-LABlab(34.01, 52.74, -43.37)
CIE-LCHlch(34.01, 68.28, 320.57°)
OKLaboklab(45.44% 0.1328 -0.1219)
OKLCHoklch(45.44% 0.18 317.5)
XYZxyz(14.6872, 8.0137, 29.6214)
Luminance0.0801 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2796 #409627
analogous
#452796 #7D2796 #962778
triadic
#7D2796 #967D27 #27967D
tetradic
#7D2796 #964527 #409627 #277896
square
#7D2796 #964527 #409627 #277896
split-complementary
#7D2796 #789627 #279645
monochromatic
#2C0E35 #551A65 #7D2796 #A534C7 #BC61D6

Accessibility & contrast

On white

8.07
#7D2796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#7D2796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2796
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2796#FFFFFF#000000##FFFFFF
##7D27961.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7d2796;
/* rgb */ color: rgb(125, 39, 150);
/* oklch */ color: oklch(45.4% 0.180 317.5);
Tailwind
colors: {
  custom: {
    50: '#a66ab5',
    500: '#7d2796',
    950: '#000000',
  },
}
SCSS
$custom: #7d2796;
$custom-light: #a66ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2796",
  "rgb": {
    "r": 125,
    "g": 39,
    "b": 150
  },
  "hsl": {
    "h": 286.486,
    "s": 58.73,
    "l": 37.059
  },
  "oklch": {
    "l": 0.45441,
    "c": 0.18028,
    "h": 317.5
  },
  "luminance": 0.08013
}

Semantic roles & 50–950 ramp

primary
#7D2796
secondary
#73BC5D
accent
#E24669
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7D2796

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

Preview Lab → · Contrast checker → · Palette generator →

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