#7F2D8F#7F2D8F

#7F2D8F is a mid, vivid purple. Relative luminance 0.084; OKLCH L 45.9% C 0.167 H 320.7°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#7F2D8F
RGBrgb(127, 45, 143)
HSLhsl(290, 52%, 37%)
HSVhsv(290, 69%, 56%)
CMYKcmyk(11.2%, 68.5%, 0%, 43.9%)
CIE-LABlab(34.75, 49.33, -37.88)
CIE-LCHlch(34.75, 62.20, 322.48°)
OKLaboklab(45.89% 0.1293 -0.1058)
OKLCHoklch(45.89% 0.167 320.7)
XYZxyz(14.6481, 8.3727, 26.8258)
Luminance0.0837 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2D8F #3D8F2D
analogous
#4E2D8F #7F2D8F #8F2D6E
triadic
#7F2D8F #8F7F2D #2D8F7F
tetradic
#7F2D8F #8F4E2D #3D8F2D #2D6E8F
square
#7F2D8F #8F4E2D #3D8F2D #2D6E8F
split-complementary
#7F2D8F #6E8F2D #2D8F4E
monochromatic
#2C1032 #561E60 #7F2D8F #A83CBE #BE67CF

Accessibility & contrast

On white

7.85
#7F2D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#7F2D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2D8F
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2D8F#FFFFFF#000000##FFFFFF
##7F2D8F1.007.852.677.85
#FFFFFF7.851.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C4C92
Deuteranopia (green-blind)
#37558D
Tritanopia (blue-blind)
#803E5A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7f2d8f;
/* rgb */ color: rgb(127, 45, 143);
/* oklch */ color: oklch(45.9% 0.167 320.7);
Tailwind
colors: {
  custom: {
    50: '#a76db0',
    500: '#7f2d8f',
    950: '#000000',
  },
}
SCSS
$custom: #7f2d8f;
$custom-light: #a76db0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2d8f",
  "rgb": {
    "r": 127,
    "g": 45,
    "b": 143
  },
  "hsl": {
    "h": 290.204,
    "s": 52.128,
    "l": 36.863
  },
  "oklch": {
    "l": 0.45887,
    "c": 0.16708,
    "h": 320.7
  },
  "luminance": 0.08372
}

Semantic roles & 50–950 ramp

primary
#7F2D8F
secondary
#70B662
accent
#DC4C64
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F2D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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