#7F2C8D#7F2C8D

#7F2C8D is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.6% C 0.167 H 321.6°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#7F2C8D
RGBrgb(127, 44, 141)
HSLhsl(291, 52%, 36%)
HSVhsv(291, 69%, 55%)
CMYKcmyk(9.9%, 68.8%, 0%, 44.7%)
CIE-LABlab(34.47, 49.37, -37.09)
CIE-LCHlch(34.47, 61.75, 323.08°)
OKLaboklab(45.65% 0.1305 -0.1035)
OKLCHoklch(45.65% 0.167 321.6)
XYZxyz(14.4603, 8.2372, 26.0224)
Luminance0.0824 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2C8D #3A8D2C
analogous
#4F2C8D #7F2C8D #8D2C6B
triadic
#7F2C8D #8D7F2C #2C8D7F
tetradic
#7F2C8D #8D4F2C #3A8D2C #2C6B8D
square
#7F2C8D #8D4F2C #3A8D2C #2C6B8D
split-complementary
#7F2C8D #6B8D2C #2C8D4F
monochromatic
#2B0F30 #551D5E #7F2C8D #A93BBC #BF65CF

Accessibility & contrast

On white

7.93
#7F2C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#7F2C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2C8D
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2C8D#FFFFFF#000000##FFFFFF
##7F2C8D1.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f2c8d;
/* rgb */ color: rgb(127, 44, 141);
/* oklch */ color: oklch(45.6% 0.167 321.6);
Tailwind
colors: {
  custom: {
    50: '#a76caf',
    500: '#7f2c8d',
    950: '#000000',
  },
}
SCSS
$custom: #7f2c8d;
$custom-light: #a76caf;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2c8d",
  "rgb": {
    "r": 127,
    "g": 44,
    "b": 141
  },
  "hsl": {
    "h": 291.34,
    "s": 52.432,
    "l": 36.275
  },
  "oklch": {
    "l": 0.4565,
    "c": 0.16656,
    "h": 321.6
  },
  "luminance": 0.08236
}

Semantic roles & 50–950 ramp

primary
#7F2C8D
secondary
#6CB560
accent
#DC4C61
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F2C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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