#7F2C97#7F2C97

#7F2C97 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.3% C 0.176 H 317.7°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#7F2C97
RGBrgb(127, 44, 151)
HSLhsl(287, 55%, 38%)
HSVhsv(287, 71%, 59%)
CMYKcmyk(15.9%, 70.9%, 0%, 40.8%)
CIE-LABlab(35.10, 51.37, -42.21)
CIE-LCHlch(35.10, 66.49, 320.59°)
OKLaboklab(46.3% 0.13 -0.1185)
OKLCHoklch(46.3% 0.176 317.7)
XYZxyz(15.2382, 8.5484, 30.1195)
Luminance0.0855 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2C97 #44972C
analogous
#492C97 #7F2C97 #972C79
triadic
#7F2C97 #977F2C #2C977F
tetradic
#7F2C97 #97492C #44972C #2C7997
square
#7F2C97 #97492C #44972C #2C7997
split-complementary
#7F2C97 #79972C #2C9749
monochromatic
#2F1038 #571E68 #7F2C97 #A63AC6 #BC6AD4

Accessibility & contrast

On white

7.75
#7F2C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#7F2C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2C97
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2C97#FFFFFF#000000##FFFFFF
##7F2C971.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9A
Deuteranopia (green-blind)
#305595
Tritanopia (blue-blind)
#7E415E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7f2c97;
/* rgb */ color: rgb(127, 44, 151);
/* oklch */ color: oklch(46.3% 0.176 317.7);
Tailwind
colors: {
  custom: {
    50: '#a76db6',
    500: '#7f2c97',
    950: '#000000',
  },
}
SCSS
$custom: #7f2c97;
$custom-light: #a76db6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2c97",
  "rgb": {
    "r": 127,
    "g": 44,
    "b": 151
  },
  "hsl": {
    "h": 286.542,
    "s": 54.872,
    "l": 38.235
  },
  "oklch": {
    "l": 0.46301,
    "c": 0.17592,
    "h": 317.7
  },
  "luminance": 0.08548
}

Semantic roles & 50–950 ramp

primary
#7F2C97
secondary
#78BA65
accent
#DE4A6B
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F2C97

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

Preview Lab → · Contrast checker → · Palette generator →

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