#7E2F99#7E2F99

#7E2F99 is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.6% C 0.174 H 316.2°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#7E2F99
RGBrgb(126, 47, 153)
HSLhsl(285, 53%, 39%)
HSVhsv(285, 69%, 60%)
CMYKcmyk(17.6%, 69.3%, 0%, 40%)
CIE-LABlab(35.54, 50.27, -42.74)
CIE-LCHlch(35.54, 65.98, 319.63°)
OKLaboklab(46.62% 0.1253 -0.1201)
OKLCHoklch(46.62% 0.174 316.2)
XYZxyz(15.3696, 8.7691, 31.0138)
Luminance0.0877 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2F99 #4A992F
analogous
#492F99 #7E2F99 #992F7F
triadic
#7E2F99 #997E2F #2F997E
tetradic
#7E2F99 #99492F #4A992F #2F7F99
square
#7E2F99 #99492F #4A992F #2F7F99
split-complementary
#7E2F99 #7F992F #2F9949
monochromatic
#31123B #57216A #7E2F99 #A341C5 #BA6FD3

Accessibility & contrast

On white

7.63
#7E2F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#7E2F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2F99
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2F99#FFFFFF#000000##FFFFFF
##7E2F991.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9C
Deuteranopia (green-blind)
#2F5697
Tritanopia (blue-blind)
#7C4460
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7e2f99;
/* rgb */ color: rgb(126, 47, 153);
/* oklch */ color: oklch(46.6% 0.174 316.2);
Tailwind
colors: {
  custom: {
    50: '#a76eb8',
    500: '#7e2f99',
    950: '#000000',
  },
}
SCSS
$custom: #7e2f99;
$custom-light: #a76eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2f99",
  "rgb": {
    "r": 126,
    "g": 47,
    "b": 153
  },
  "hsl": {
    "h": 284.717,
    "s": 53,
    "l": 39.216
  },
  "oklch": {
    "l": 0.46624,
    "c": 0.17354,
    "h": 316.2
  },
  "luminance": 0.08769
}

Semantic roles & 50–950 ramp

primary
#7E2F99
secondary
#7EBA69
accent
#DC4B70
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #7E2F99

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

Preview Lab → · Contrast checker → · Palette generator →

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