#7D2797#7D2797

#7D2797 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.5% C 0.181 H 317.1°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#7D2797
RGBrgb(125, 39, 151)
HSLhsl(286, 59%, 37%)
HSVhsv(286, 74%, 59%)
CMYKcmyk(17.2%, 74.2%, 0%, 40.8%)
CIE-LABlab(34.08, 52.95, -43.87)
CIE-LCHlch(34.08, 68.76, 320.36°)
OKLaboklab(45.51% 0.1327 -0.1234)
OKLCHoklch(45.51% 0.181 317.1)
XYZxyz(14.7681, 8.0460, 30.0473)
Luminance0.0804 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2797 #419727
analogous
#452797 #7D2797 #972779
triadic
#7D2797 #977D27 #27977D
tetradic
#7D2797 #974527 #419727 #277997
square
#7D2797 #974527 #419727 #277997
split-complementary
#7D2797 #799727 #279745
monochromatic
#2C0E36 #551A66 #7D2797 #A534C8 #BB62D6

Accessibility & contrast

On white

8.05
#7D2797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#7D2797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2797
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2797#FFFFFF#000000##FFFFFF
##7D27971.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9A
Deuteranopia (green-blind)
#295394
Tritanopia (blue-blind)
#7C3E5D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7d2797;
/* rgb */ color: rgb(125, 39, 151);
/* oklch */ color: oklch(45.5% 0.181 317.1);
Tailwind
colors: {
  custom: {
    50: '#a66ab6',
    500: '#7d2797',
    950: '#000000',
  },
}
SCSS
$custom: #7d2797;
$custom-light: #a66ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2797",
  "rgb": {
    "r": 125,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 286.071,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.45511,
    "c": 0.1812,
    "h": 317.1
  },
  "luminance": 0.08045
}

Semantic roles & 50–950 ramp

primary
#7D2797
secondary
#74BC5E
accent
#E2466A
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7D2797

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

Preview Lab → · Contrast checker → · Palette generator →

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