#7F2C99#7F2C99

#7F2C99 is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.4% C 0.178 H 316.9°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#7F2C99
RGBrgb(127, 44, 153)
HSLhsl(286, 55%, 39%)
HSVhsv(286, 71%, 60%)
CMYKcmyk(17%, 71.2%, 0%, 40%)
CIE-LABlab(35.23, 51.77, -43.22)
CIE-LCHlch(35.23, 67.44, 320.15°)
OKLaboklab(46.44% 0.1299 -0.1214)
OKLCHoklch(46.44% 0.178 316.9)
XYZxyz(15.4020, 8.6139, 30.9822)
Luminance0.0861 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2C99 #46992C
analogous
#482C99 #7F2C99 #992C7C
triadic
#7F2C99 #997F2C #2C997F
tetradic
#7F2C99 #99482C #46992C #2C7C99
square
#7F2C99 #99482C #46992C #2C7C99
split-complementary
#7F2C99 #7C992C #2C9948
monochromatic
#30113A #581E69 #7F2C99 #A63BC7 #BB6BD4

Accessibility & contrast

On white

7.71
#7F2C99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#7F2C99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2C99
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2C99#FFFFFF#000000##FFFFFF
##7F2C991.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9C
Deuteranopia (green-blind)
#2E5596
Tritanopia (blue-blind)
#7E425F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7f2c99;
/* rgb */ color: rgb(127, 44, 153);
/* oklch */ color: oklch(46.4% 0.178 316.9);
Tailwind
colors: {
  custom: {
    50: '#a86db8',
    500: '#7f2c99',
    950: '#000000',
  },
}
SCSS
$custom: #7f2c99;
$custom-light: #a86db8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2c99",
  "rgb": {
    "r": 127,
    "g": 44,
    "b": 153
  },
  "hsl": {
    "h": 285.688,
    "s": 55.33,
    "l": 38.627
  },
  "oklch": {
    "l": 0.46436,
    "c": 0.17781,
    "h": 316.9
  },
  "luminance": 0.08613
}

Semantic roles & 50–950 ramp

primary
#7F2C99
secondary
#7ABB66
accent
#DF496D
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F2C99

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

Preview Lab → · Contrast checker → · Palette generator →

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