#7F2997#7F2997

#7F2997 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.0% C 0.180 H 317.9°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#7F2997
RGBrgb(127, 41, 151)
HSLhsl(287, 57%, 38%)
HSVhsv(287, 73%, 59%)
CMYKcmyk(15.9%, 72.8%, 0%, 40.8%)
CIE-LABlab(34.67, 52.59, -42.91)
CIE-LCHlch(34.67, 67.87, 320.79°)
OKLaboklab(45.99% 0.1332 -0.1205)
OKLCHoklch(45.99% 0.18 317.9)
XYZxyz(15.1305, 8.3329, 30.0836)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2997 #419729
analogous
#482997 #7F2997 #972978
triadic
#7F2997 #977F29 #29977F
tetradic
#7F2997 #974829 #419729 #297897
square
#7F2997 #974829 #419729 #297897
split-complementary
#7F2997 #789729 #299748
monochromatic
#2E0F37 #571C67 #7F2997 #A736C7 #BD65D5

Accessibility & contrast

On white

7.88
#7F2997 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F2997
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2997#FFFFFF#000000##FFFFFF
##7F29971.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9A
Deuteranopia (green-blind)
#2D5494
Tritanopia (blue-blind)
#7E3F5D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7f2997;
/* rgb */ color: rgb(127, 41, 151);
/* oklch */ color: oklch(46.0% 0.180 317.9);
Tailwind
colors: {
  custom: {
    50: '#a86bb6',
    500: '#7f2997',
    950: '#000000',
  },
}
SCSS
$custom: #7f2997;
$custom-light: #a86bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2997",
  "rgb": {
    "r": 127,
    "g": 41,
    "b": 151
  },
  "hsl": {
    "h": 286.909,
    "s": 57.292,
    "l": 37.647
  },
  "oklch": {
    "l": 0.45992,
    "c": 0.17963,
    "h": 317.9
  },
  "luminance": 0.08332
}

Semantic roles & 50–950 ramp

primary
#7F2997
secondary
#74BB61
accent
#E14769
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F2997

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

Preview Lab → · Contrast checker → · Palette generator →

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