#7D2E97#7D2E97

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

Color values

HEX#7D2E97
RGBrgb(125, 46, 151)
HSLhsl(285, 53%, 39%)
HSVhsv(285, 70%, 59%)
CMYKcmyk(17.2%, 69.5%, 0%, 40.8%)
CIE-LABlab(35.10, 50.06, -42.23)
CIE-LCHlch(35.10, 65.49, 319.85°)
OKLaboklab(46.24% 0.1253 -0.1186)
OKLCHoklch(46.24% 0.173 316.6)
XYZxyz(15.0195, 8.5489, 30.1311)
Luminance0.0855 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2E97 #48972E
analogous
#482E97 #7D2E97 #972E7C
triadic
#7D2E97 #977D2E #2E977D
tetradic
#7D2E97 #97482E #48972E #2E7C97
square
#7D2E97 #97482E #48972E #2E7C97
split-complementary
#7D2E97 #7C972E #2E9748
monochromatic
#2F1139 #562068 #7D2E97 #A33EC4 #B96DD2

Accessibility & contrast

On white

7.75
#7D2E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#7D2E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2E97
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2E97#FFFFFF#000000##FFFFFF
##7D2E971.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9A
Deuteranopia (green-blind)
#2F5595
Tritanopia (blue-blind)
#7C425F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7d2e97;
/* rgb */ color: rgb(125, 46, 151);
/* oklch */ color: oklch(46.2% 0.173 316.6);
Tailwind
colors: {
  custom: {
    50: '#a66db6',
    500: '#7d2e97',
    950: '#000000',
  },
}
SCSS
$custom: #7d2e97;
$custom-light: #a66db6;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2e97",
  "rgb": {
    "r": 125,
    "g": 46,
    "b": 151
  },
  "hsl": {
    "h": 285.143,
    "s": 53.299,
    "l": 38.627
  },
  "oklch": {
    "l": 0.4624,
    "c": 0.17251,
    "h": 316.6
  },
  "luminance": 0.08548
}

Semantic roles & 50–950 ramp

primary
#7D2E97
secondary
#7CBA67
accent
#DD4B6F
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7D2E97

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

Preview Lab → · Contrast checker → · Palette generator →

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