#7F2E97#7F2E97

#7F2E97 is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.5% C 0.173 H 317.5°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#7F2E97
RGBrgb(127, 46, 151)
HSLhsl(286, 53%, 39%)
HSVhsv(286, 70%, 59%)
CMYKcmyk(15.9%, 69.5%, 0%, 40.8%)
CIE-LABlab(35.40, 50.52, -41.73)
CIE-LCHlch(35.40, 65.52, 320.44°)
OKLaboklab(46.52% 0.1278 -0.1171)
OKLCHoklch(46.52% 0.173 317.5)
XYZxyz(15.3145, 8.7010, 30.1449)
Luminance0.0870 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2E97 #46972E
analogous
#4A2E97 #7F2E97 #972E7A
triadic
#7F2E97 #977F2E #2E977F
tetradic
#7F2E97 #974A2E #46972E #2E7A97
square
#7F2E97 #974A2E #46972E #2E7A97
split-complementary
#7F2E97 #7A972E #2E974A
monochromatic
#301139 #582068 #7F2E97 #A63EC4 #BB6DD2

Accessibility & contrast

On white

7.66
#7F2E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#7F2E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2E97
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2E97#FFFFFF#000000##FFFFFF
##7F2E971.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9A
Deuteranopia (green-blind)
#315695
Tritanopia (blue-blind)
#7E425F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7f2e97;
/* rgb */ color: rgb(127, 46, 151);
/* oklch */ color: oklch(46.5% 0.173 317.5);
Tailwind
colors: {
  custom: {
    50: '#a76eb6',
    500: '#7f2e97',
    950: '#000000',
  },
}
SCSS
$custom: #7f2e97;
$custom-light: #a76eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2e97",
  "rgb": {
    "r": 127,
    "g": 46,
    "b": 151
  },
  "hsl": {
    "h": 286.286,
    "s": 53.299,
    "l": 38.627
  },
  "oklch": {
    "l": 0.46518,
    "c": 0.17334,
    "h": 317.5
  },
  "luminance": 0.087
}

Semantic roles & 50–950 ramp

primary
#7F2E97
secondary
#7ABA67
accent
#DD4B6C
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F2E97

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

Preview Lab → · Contrast checker → · Palette generator →

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