#7F2C91#7F2C91

#7F2C91 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 45.9% C 0.170 H 320.0°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#7F2C91
RGBrgb(127, 44, 145)
HSLhsl(289, 53%, 37%)
HSVhsv(289, 70%, 57%)
CMYKcmyk(12.4%, 69.7%, 0%, 43.1%)
CIE-LABlab(34.72, 50.16, -39.16)
CIE-LCHlch(34.72, 63.63, 322.02°)
OKLaboklab(45.91% 0.1304 -0.1095)
OKLCHoklch(45.91% 0.17 320)
XYZxyz(14.7633, 8.3584, 27.6183)
Luminance0.0836 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2C91 #3E912C
analogous
#4D2C91 #7F2C91 #912C71
triadic
#7F2C91 #917F2C #2C917F
tetradic
#7F2C91 #914D2C #3E912C #2C7191
square
#7F2C91 #914D2C #3E912C #2C7191
split-complementary
#7F2C91 #71912C #2C914D
monochromatic
#2D1033 #561E62 #7F2C91 #A83AC0 #BE67D1

Accessibility & contrast

On white

7.86
#7F2C91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#7F2C91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2C91
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2C91#FFFFFF#000000##FFFFFF
##7F2C911.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#034C94
Deuteranopia (green-blind)
#35558F
Tritanopia (blue-blind)
#7F3E5B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7f2c91;
/* rgb */ color: rgb(127, 44, 145);
/* oklch */ color: oklch(45.9% 0.170 320.0);
Tailwind
colors: {
  custom: {
    50: '#a76cb2',
    500: '#7f2c91',
    950: '#000000',
  },
}
SCSS
$custom: #7f2c91;
$custom-light: #a76cb2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2c91",
  "rgb": {
    "r": 127,
    "g": 44,
    "b": 145
  },
  "hsl": {
    "h": 289.307,
    "s": 53.439,
    "l": 37.059
  },
  "oklch": {
    "l": 0.45906,
    "c": 0.17028,
    "h": 320
  },
  "luminance": 0.08358
}

Semantic roles & 50–950 ramp

primary
#7F2C91
secondary
#71B762
accent
#DD4B65
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F2C91

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

Preview Lab → · Contrast checker → · Palette generator →

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