#7E2299#7E2299

#7E2299 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.3% C 0.189 H 317.1°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#7E2299
RGBrgb(126, 34, 153)
HSLhsl(286, 64%, 37%)
HSVhsv(286, 78%, 60%)
CMYKcmyk(17.6%, 77.8%, 0%, 40%)
CIE-LABlab(33.73, 55.39, -45.64)
CIE-LCHlch(33.73, 71.77, 320.51°)
OKLaboklab(45.34% 0.1385 -0.1285)
OKLCHoklch(45.34% 0.189 317.1)
XYZxyz(14.9251, 7.8802, 30.8657)
Luminance0.0788 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2299 #3D9922
analogous
#432299 #7E2299 #992279
triadic
#7E2299 #997E22 #22997E
tetradic
#7E2299 #994322 #3D9922 #227999
square
#7E2299 #994322 #3D9922 #227999
split-complementary
#7E2299 #799922 #229943
monochromatic
#2C0C35 #551767 #7E2299 #A72DCB #BE5BDB

Accessibility & contrast

On white

8.15
#7E2299 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7E2299 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2299
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2299#FFFFFF#000000##FFFFFF
##7E22991.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9C
Deuteranopia (green-blind)
#245296
Tritanopia (blue-blind)
#7D3C5D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e2299;
/* rgb */ color: rgb(126, 34, 153);
/* oklch */ color: oklch(45.3% 0.189 317.1);
Tailwind
colors: {
  custom: {
    50: '#a768b8',
    500: '#7e2299',
    950: '#000000',
  },
}
SCSS
$custom: #7e2299;
$custom-light: #a768b8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2299",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 153
  },
  "hsl": {
    "h": 286.387,
    "s": 63.636,
    "l": 36.667
  },
  "oklch": {
    "l": 0.4534,
    "c": 0.18889,
    "h": 317.1
  },
  "luminance": 0.0788
}

Semantic roles & 50–950 ramp

primary
#7E2299
secondary
#6FBF58
accent
#E74167
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2299

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

Preview Lab → · Contrast checker → · Palette generator →

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