#7F2D89#7F2D89

#7F2D89 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.5% C 0.162 H 323.2°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#7F2D89
RGBrgb(127, 45, 137)
HSLhsl(293, 51%, 36%)
HSVhsv(293, 67%, 54%)
CMYKcmyk(7.3%, 67.2%, 0%, 46.3%)
CIE-LABlab(34.39, 48.16, -34.76)
CIE-LCHlch(34.39, 59.40, 324.18°)
OKLaboklab(45.51% 0.1293 -0.0967)
OKLCHoklch(45.51% 0.162 323.2)
XYZxyz(14.2057, 8.1957, 24.4957)
Luminance0.0819 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2D89 #37892D
analogous
#512D89 #7F2D89 #892D65
triadic
#7F2D89 #897F2D #2D897F
tetradic
#7F2D89 #89512D #37892D #2D6589
square
#7F2D89 #89512D #37892D #2D6589
split-complementary
#7F2D89 #65892D #2D8951
monochromatic
#2A0F2D #541E5B #7F2D89 #AA3CB7 #C164CC

Accessibility & contrast

On white

7.96
#7F2D89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#7F2D89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2D89
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2D89#FFFFFF#000000##FFFFFF
##7F2D891.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174B8C
Deuteranopia (green-blind)
#3B5487
Tritanopia (blue-blind)
#813C57
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7f2d89;
/* rgb */ color: rgb(127, 45, 137);
/* oklch */ color: oklch(45.5% 0.162 323.2);
Tailwind
colors: {
  custom: {
    50: '#a76dac',
    500: '#7f2d89',
    950: '#000000',
  },
}
SCSS
$custom: #7f2d89;
$custom-light: #a76dac;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2d89",
  "rgb": {
    "r": 127,
    "g": 45,
    "b": 137
  },
  "hsl": {
    "h": 293.478,
    "s": 50.549,
    "l": 35.686
  },
  "oklch": {
    "l": 0.45512,
    "c": 0.1615,
    "h": 323.2
  },
  "luminance": 0.08195
}

Semantic roles & 50–950 ramp

primary
#7F2D89
secondary
#68B35F
accent
#DA4E5D
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F2D89

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

Preview Lab → · Contrast checker → · Palette generator →

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