#7F2D8D#7F2D8D

#7F2D8D is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.8% C 0.165 H 321.5°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#7F2D8D
RGBrgb(127, 45, 141)
HSLhsl(291, 52%, 36%)
HSVhsv(291, 68%, 55%)
CMYKcmyk(9.9%, 68.1%, 0%, 44.7%)
CIE-LABlab(34.63, 48.94, -36.85)
CIE-LCHlch(34.63, 61.26, 323.02°)
OKLaboklab(45.76% 0.1293 -0.1028)
OKLCHoklch(45.76% 0.165 321.5)
XYZxyz(14.4980, 8.3126, 26.0350)
Luminance0.0831 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2D8D #3B8D2D
analogous
#4F2D8D #7F2D8D #8D2D6B
triadic
#7F2D8D #8D7F2D #2D8D7F
tetradic
#7F2D8D #8D4F2D #3B8D2D #2D6B8D
square
#7F2D8D #8D4F2D #3B8D2D #2D6B8D
split-complementary
#7F2D8D #6B8D2D #2D8D4F
monochromatic
#2B0F30 #551E5F #7F2D8D #A93CBB #BF66CE

Accessibility & contrast

On white

7.89
#7F2D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#7F2D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2D8D
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2D8D#FFFFFF#000000##FFFFFF
##7F2D8D1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104C90
Deuteranopia (green-blind)
#38548B
Tritanopia (blue-blind)
#803D59
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7f2d8d;
/* rgb */ color: rgb(127, 45, 141);
/* oklch */ color: oklch(45.8% 0.165 321.5);
Tailwind
colors: {
  custom: {
    50: '#a76daf',
    500: '#7f2d8d',
    950: '#000000',
  },
}
SCSS
$custom: #7f2d8d;
$custom-light: #a76daf;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2d8d",
  "rgb": {
    "r": 127,
    "g": 45,
    "b": 141
  },
  "hsl": {
    "h": 291.25,
    "s": 51.613,
    "l": 36.471
  },
  "oklch": {
    "l": 0.4576,
    "c": 0.16521,
    "h": 321.5
  },
  "luminance": 0.08312
}

Semantic roles & 50–950 ramp

primary
#7F2D8D
secondary
#6DB561
accent
#DB4D61
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F2D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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