#7F2C8F#7F2C8F

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

Color values

HEX#7F2C8F
RGBrgb(127, 44, 143)
HSLhsl(290, 53%, 37%)
HSVhsv(290, 69%, 56%)
CMYKcmyk(11.2%, 69.2%, 0%, 43.9%)
CIE-LABlab(34.59, 49.76, -38.13)
CIE-LCHlch(34.59, 62.69, 322.54°)
OKLaboklab(45.78% 0.1304 -0.1065)
OKLCHoklch(45.78% 0.168 320.8)
XYZxyz(14.6104, 8.2973, 26.8132)
Luminance0.0830 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2C8F #3C8F2C
analogous
#4E2C8F #7F2C8F #8F2C6E
triadic
#7F2C8F #8F7F2C #2C8F7F
tetradic
#7F2C8F #8F4E2C #3C8F2C #2C6E8F
square
#7F2C8F #8F4E2C #3C8F2C #2C6E8F
split-complementary
#7F2C8F #6E8F2C #2C8F4E
monochromatic
#2C0F31 #551E60 #7F2C8F #A93ABE #BF66D0

Accessibility & contrast

On white

7.90
#7F2C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F2C8F
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2C8F#FFFFFF#000000##FFFFFF
##7F2C8F1.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#084C92
Deuteranopia (green-blind)
#36548D
Tritanopia (blue-blind)
#803D5A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7f2c8f;
/* rgb */ color: rgb(127, 44, 143);
/* oklch */ color: oklch(45.8% 0.168 320.8);
Tailwind
colors: {
  custom: {
    50: '#a76cb0',
    500: '#7f2c8f',
    950: '#000000',
  },
}
SCSS
$custom: #7f2c8f;
$custom-light: #a76cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2c8f",
  "rgb": {
    "r": 127,
    "g": 44,
    "b": 143
  },
  "hsl": {
    "h": 290.303,
    "s": 52.941,
    "l": 36.667
  },
  "oklch": {
    "l": 0.45777,
    "c": 0.16842,
    "h": 320.8
  },
  "luminance": 0.08297
}

Semantic roles & 50–950 ramp

primary
#7F2C8F
secondary
#6EB661
accent
#DC4B63
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F2C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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