#7E2999#7E2999

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

Color values

HEX#7E2999
RGBrgb(126, 41, 153)
HSLhsl(286, 58%, 38%)
HSVhsv(286, 73%, 60%)
CMYKcmyk(17.6%, 73.2%, 0%, 40%)
CIE-LABlab(34.64, 52.78, -44.17)
CIE-LCHlch(34.64, 68.82, 320.08°)
OKLaboklab(45.99% 0.1318 -0.1242)
OKLCHoklch(45.99% 0.181 316.7)
XYZxyz(15.1460, 8.3220, 30.9393)
Luminance0.0832 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2999 #449929
analogous
#462999 #7E2999 #99297C
triadic
#7E2999 #997E29 #29997E
tetradic
#7E2999 #994629 #449929 #297C99
square
#7E2999 #994629 #449929 #297C99
split-complementary
#7E2999 #7C9929 #299946
monochromatic
#2F0F38 #561C69 #7E2999 #A636C9 #BB66D6

Accessibility & contrast

On white

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

On black

2.66
#7E2999 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7E2999#FFFFFF#000000##FFFFFF
##7E29991.007.882.667.88
#FFFFFF7.881.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9C
Deuteranopia (green-blind)
#2A5496
Tritanopia (blue-blind)
#7C405E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7e2999;
/* rgb */ color: rgb(126, 41, 153);
/* oklch */ color: oklch(46.0% 0.181 316.7);
Tailwind
colors: {
  custom: {
    50: '#a76bb8',
    500: '#7e2999',
    950: '#000000',
  },
}
SCSS
$custom: #7e2999;
$custom-light: #a76bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2999",
  "rgb": {
    "r": 126,
    "g": 41,
    "b": 153
  },
  "hsl": {
    "h": 285.536,
    "s": 57.732,
    "l": 38.039
  },
  "oklch": {
    "l": 0.45988,
    "c": 0.18108,
    "h": 316.7
  },
  "luminance": 0.08321
}

Semantic roles & 50–950 ramp

primary
#7E2999
secondary
#77BC62
accent
#E1476C
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2999

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

Preview Lab → · Contrast checker → · Palette generator →

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