#7F2A97#7F2A97

#7F2A97 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.1% C 0.178 H 317.8°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#7F2A97
RGBrgb(127, 42, 151)
HSLhsl(287, 56%, 38%)
HSVhsv(287, 72%, 59%)
CMYKcmyk(15.9%, 72.2%, 0%, 40.8%)
CIE-LABlab(34.81, 52.19, -42.68)
CIE-LCHlch(34.81, 67.42, 320.72°)
OKLaboklab(46.09% 0.1322 -0.1198)
OKLCHoklch(46.09% 0.178 317.8)
XYZxyz(15.1655, 8.4030, 30.0953)
Luminance0.0840 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2A97 #42972A
analogous
#482A97 #7F2A97 #972A78
triadic
#7F2A97 #977F2A #2A977F
tetradic
#7F2A97 #97482A #42972A #2A7897
square
#7F2A97 #97482A #42972A #2A7897
split-complementary
#7F2A97 #78972A #2A9748
monochromatic
#2E0F37 #571D67 #7F2A97 #A737C7 #BC67D5

Accessibility & contrast

On white

7.83
#7F2A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#7F2A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2A97
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2A97#FFFFFF#000000##FFFFFF
##7F2A971.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9A
Deuteranopia (green-blind)
#2E5494
Tritanopia (blue-blind)
#7E405E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7f2a97;
/* rgb */ color: rgb(127, 42, 151);
/* oklch */ color: oklch(46.1% 0.178 317.8);
Tailwind
colors: {
  custom: {
    50: '#a86cb6',
    500: '#7f2a97',
    950: '#000000',
  },
}
SCSS
$custom: #7f2a97;
$custom-light: #a86cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2a97",
  "rgb": {
    "r": 127,
    "g": 42,
    "b": 151
  },
  "hsl": {
    "h": 286.789,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.46093,
    "c": 0.17842,
    "h": 317.8
  },
  "luminance": 0.08402
}

Semantic roles & 50–950 ramp

primary
#7F2A97
secondary
#75BB62
accent
#E04869
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F2A97

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

Preview Lab → · Contrast checker → · Palette generator →

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