#7E2F96#7E2F96

#7E2F96 is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.4% C 0.171 H 317.3°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#7E2F96
RGBrgb(126, 47, 150)
HSLhsl(286, 52%, 39%)
HSVhsv(286, 69%, 59%)
CMYKcmyk(16%, 68.7%, 0%, 41.2%)
CIE-LABlab(35.34, 49.64, -41.22)
CIE-LCHlch(35.34, 64.52, 320.29°)
OKLaboklab(46.43% 0.1255 -0.1156)
OKLCHoklch(46.43% 0.171 317.3)
XYZxyz(15.1249, 8.6713, 29.7253)
Luminance0.0867 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2F96 #47962F
analogous
#4A2F96 #7E2F96 #962F7A
triadic
#7E2F96 #967E2F #2F967E
tetradic
#7E2F96 #964A2F #47962F #2F7A96
square
#7E2F96 #964A2F #47962F #2F7A96
split-complementary
#7E2F96 #7A962F #2F964A
monochromatic
#301239 #572067 #7E2F96 #A43FC3 #BA6ED2

Accessibility & contrast

On white

7.68
#7E2F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#7E2F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2F96
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2F96#FFFFFF#000000##FFFFFF
##7E2F961.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E99
Deuteranopia (green-blind)
#325694
Tritanopia (blue-blind)
#7D425F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7e2f96;
/* rgb */ color: rgb(126, 47, 150);
/* oklch */ color: oklch(46.4% 0.171 317.3);
Tailwind
colors: {
  custom: {
    50: '#a76eb5',
    500: '#7e2f96',
    950: '#000000',
  },
}
SCSS
$custom: #7e2f96;
$custom-light: #a76eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2f96",
  "rgb": {
    "r": 126,
    "g": 47,
    "b": 150
  },
  "hsl": {
    "h": 286.019,
    "s": 52.284,
    "l": 38.627
  },
  "oklch": {
    "l": 0.46425,
    "c": 0.17062,
    "h": 317.3
  },
  "luminance": 0.08671
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7E2F96

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

Preview Lab → · Contrast checker → · Palette generator →

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