#7F2C8E#7F2C8E

#7F2C8E is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.7% C 0.167 H 321.2°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#7F2C8E
RGBrgb(127, 44, 142)
HSLhsl(291, 53%, 36%)
HSVhsv(291, 69%, 56%)
CMYKcmyk(10.6%, 69%, 0%, 44.3%)
CIE-LABlab(34.53, 49.56, -37.61)
CIE-LCHlch(34.53, 62.22, 322.81°)
OKLaboklab(45.71% 0.1305 -0.105)
OKLCHoklch(45.71% 0.167 321.2)
XYZxyz(14.5350, 8.2671, 26.4160)
Luminance0.0827 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2C8E #3B8E2C
analogous
#4E2C8E #7F2C8E #8E2C6C
triadic
#7F2C8E #8E7F2C #2C8E7F
tetradic
#7F2C8E #8E4E2C #3B8E2C #2C6C8E
square
#7F2C8E #8E4E2C #3B8E2C #2C6C8E
split-complementary
#7F2C8E #6C8E2C #2C8E4E
monochromatic
#2B0F31 #551E5F #7F2C8E #A93ABD #BF65CF

Accessibility & contrast

On white

7.91
#7F2C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F2C8E
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2C8E#FFFFFF#000000##FFFFFF
##7F2C8E1.007.912.657.91
#FFFFFF7.911.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B4B91
Deuteranopia (green-blind)
#37548C
Tritanopia (blue-blind)
#803D59
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7f2c8e;
/* rgb */ color: rgb(127, 44, 142);
/* oklch */ color: oklch(45.7% 0.167 321.2);
Tailwind
colors: {
  custom: {
    50: '#a76caf',
    500: '#7f2c8e',
    950: '#000000',
  },
}
SCSS
$custom: #7f2c8e;
$custom-light: #a76caf;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2c8e",
  "rgb": {
    "r": 127,
    "g": 44,
    "b": 142
  },
  "hsl": {
    "h": 290.816,
    "s": 52.688,
    "l": 36.471
  },
  "oklch": {
    "l": 0.45713,
    "c": 0.16748,
    "h": 321.2
  },
  "luminance": 0.08266
}

Semantic roles & 50–950 ramp

primary
#7F2C8E
secondary
#6DB660
accent
#DC4C62
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F2C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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