#7F2D97#7F2D97

#7F2D97 is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.4% C 0.175 H 317.6°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#7F2D97
RGBrgb(127, 45, 151)
HSLhsl(286, 54%, 38%)
HSVhsv(286, 70%, 59%)
CMYKcmyk(15.9%, 70.2%, 0%, 40.8%)
CIE-LABlab(35.25, 50.94, -41.97)
CIE-LCHlch(35.25, 66.01, 320.52°)
OKLaboklab(46.41% 0.1289 -0.1178)
OKLCHoklch(46.41% 0.175 317.6)
XYZxyz(15.2759, 8.6238, 30.1321)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2D97 #45972D
analogous
#4A2D97 #7F2D97 #972D7A
triadic
#7F2D97 #977F2D #2D977F
tetradic
#7F2D97 #974A2D #45972D #2D7A97
square
#7F2D97 #974A2D #45972D #2D7A97
split-complementary
#7F2D97 #7A972D #2D974A
monochromatic
#301139 #571F68 #7F2D97 #A63CC5 #BC6BD3

Accessibility & contrast

On white

7.71
#7F2D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#7F2D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2D97
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2D97#FFFFFF#000000##FFFFFF
##7F2D971.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9A
Deuteranopia (green-blind)
#305595
Tritanopia (blue-blind)
#7E415F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7f2d97;
/* rgb */ color: rgb(127, 45, 151);
/* oklch */ color: oklch(46.4% 0.175 317.6);
Tailwind
colors: {
  custom: {
    50: '#a76db6',
    500: '#7f2d97',
    950: '#000000',
  },
}
SCSS
$custom: #7f2d97;
$custom-light: #a76db6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2d97",
  "rgb": {
    "r": 127,
    "g": 45,
    "b": 151
  },
  "hsl": {
    "h": 286.415,
    "s": 54.082,
    "l": 38.431
  },
  "oklch": {
    "l": 0.46409,
    "c": 0.17464,
    "h": 317.6
  },
  "luminance": 0.08623
}

Semantic roles & 50–950 ramp

primary
#7F2D97
secondary
#79BA66
accent
#DD4A6C
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F2D97

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

Preview Lab → · Contrast checker → · Palette generator →

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