#7F2C96#7F2C96

#7F2C96 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.2% C 0.175 H 318.0°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#7F2C96
RGBrgb(127, 44, 150)
HSLhsl(287, 55%, 38%)
HSVhsv(287, 71%, 59%)
CMYKcmyk(15.3%, 70.7%, 0%, 41.2%)
CIE-LABlab(35.04, 51.16, -41.71)
CIE-LCHlch(35.04, 66.01, 320.81°)
OKLaboklab(46.24% 0.1301 -0.117)
OKLCHoklch(46.24% 0.175 318)
XYZxyz(15.1573, 8.5161, 29.6936)
Luminance0.0852 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2C96 #43962C
analogous
#4A2C96 #7F2C96 #962C78
triadic
#7F2C96 #967F2C #2C967F
tetradic
#7F2C96 #964A2C #43962C #2C7896
square
#7F2C96 #964A2C #43962C #2C7896
split-complementary
#7F2C96 #78962C #2C964A
monochromatic
#2F1037 #571E67 #7F2C96 #A73AC5 #BC69D3

Accessibility & contrast

On white

7.77
#7F2C96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#7F2C96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2C96
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2C96#FFFFFF#000000##FFFFFF
##7F2C961.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D99
Deuteranopia (green-blind)
#305594
Tritanopia (blue-blind)
#7E405E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7f2c96;
/* rgb */ color: rgb(127, 44, 150);
/* oklch */ color: oklch(46.2% 0.175 318.0);
Tailwind
colors: {
  custom: {
    50: '#a76db5',
    500: '#7f2c96',
    950: '#000000',
  },
}
SCSS
$custom: #7f2c96;
$custom-light: #a76db5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2c96",
  "rgb": {
    "r": 127,
    "g": 44,
    "b": 150
  },
  "hsl": {
    "h": 286.981,
    "s": 54.639,
    "l": 38.039
  },
  "oklch": {
    "l": 0.46235,
    "c": 0.17498,
    "h": 318
  },
  "luminance": 0.08515
}

Semantic roles & 50–950 ramp

primary
#7F2C96
secondary
#77BA64
accent
#DE4A6A
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F2C96

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

Preview Lab → · Contrast checker → · Palette generator →

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