#7E2F97#7E2F97

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

Color values

HEX#7E2F97
RGBrgb(126, 47, 151)
HSLhsl(286, 53%, 39%)
HSVhsv(286, 69%, 59%)
CMYKcmyk(16.6%, 68.9%, 0%, 40.8%)
CIE-LABlab(35.41, 49.85, -41.73)
CIE-LCHlch(35.41, 65.01, 320.07°)
OKLaboklab(46.49% 0.1254 -0.1171)
OKLCHoklch(46.49% 0.172 317)
XYZxyz(15.2058, 8.7036, 30.1512)
Luminance0.0870 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2F97 #48972F
analogous
#4A2F97 #7E2F97 #972F7C
triadic
#7E2F97 #977E2F #2F977E
tetradic
#7E2F97 #974A2F #48972F #2F7C97
square
#7E2F97 #974A2F #48972F #2F7C97
split-complementary
#7E2F97 #7C972F #2F974A
monochromatic
#30123A #572068 #7E2F97 #A440C3 #BA6ED2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E2F97#FFFFFF#000000##FFFFFF
##7E2F971.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)
#7D435F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7e2f97;
/* rgb */ color: rgb(126, 47, 151);
/* oklch */ color: oklch(46.5% 0.172 317.0);
Tailwind
colors: {
  custom: {
    50: '#a76eb6',
    500: '#7e2f97',
    950: '#000000',
  },
}
SCSS
$custom: #7e2f97;
$custom-light: #a76eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2f97",
  "rgb": {
    "r": 126,
    "g": 47,
    "b": 151
  },
  "hsl": {
    "h": 285.577,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.46491,
    "c": 0.17159,
    "h": 317
  },
  "luminance": 0.08703
}

Semantic roles & 50–950 ramp

primary
#7E2F97
secondary
#7CB968
accent
#DC4C6E
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #7E2F97

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

Preview Lab → · Contrast checker → · Palette generator →

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