#7F2C8A#7F2C8A

#7F2C8A is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.5% C 0.164 H 322.8°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#7F2C8A
RGBrgb(127, 44, 138)
HSLhsl(293, 52%, 36%)
HSVhsv(293, 68%, 54%)
CMYKcmyk(8%, 68.1%, 0%, 45.9%)
CIE-LABlab(34.29, 48.78, -35.53)
CIE-LCHlch(34.29, 60.35, 323.93°)
OKLaboklab(45.46% 0.1305 -0.099)
OKLCHoklch(45.46% 0.164 322.8)
XYZxyz(14.2401, 8.1492, 24.8627)
Luminance0.0815 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2C8A #378A2C
analogous
#502C8A #7F2C8A #8A2C66
triadic
#7F2C8A #8A7F2C #2C8A7F
tetradic
#7F2C8A #8A502C #378A2C #2C668A
square
#7F2C8A #8A502C #378A2C #2C668A
split-complementary
#7F2C8A #668A2C #2C8A50
monochromatic
#2A0E2D #541D5C #7F2C8A #AA3BB8 #C163CD

Accessibility & contrast

On white

7.99
#7F2C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#7F2C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2C8A
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2C8A#FFFFFF#000000##FFFFFF
##7F2C8A1.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#144A8D
Deuteranopia (green-blind)
#3A5488
Tritanopia (blue-blind)
#813B57
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7f2c8a;
/* rgb */ color: rgb(127, 44, 138);
/* oklch */ color: oklch(45.5% 0.164 322.8);
Tailwind
colors: {
  custom: {
    50: '#a76cac',
    500: '#7f2c8a',
    950: '#000000',
  },
}
SCSS
$custom: #7f2c8a;
$custom-light: #a76cac;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2c8a",
  "rgb": {
    "r": 127,
    "g": 44,
    "b": 138
  },
  "hsl": {
    "h": 292.979,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.45462,
    "c": 0.16379,
    "h": 322.8
  },
  "luminance": 0.08148
}

Semantic roles & 50–950 ramp

primary
#7F2C8A
secondary
#68B45E
accent
#DB4D5D
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F2C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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