#7E2276#7E2276

#7E2276 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.1% C 0.159 H 331.7°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#7E2276
RGBrgb(126, 34, 118)
HSLhsl(305, 58%, 31%)
HSVhsv(305, 73%, 49%)
CMYKcmyk(0%, 73%, 6.3%, 50.6%)
CIE-LABlab(31.55, 48.94, -27.39)
CIE-LCHlch(31.55, 56.08, 330.76°)
OKLaboklab(43.09% 0.1401 -0.0753)
OKLCHoklch(43.09% 0.159 331.7)
XYZxyz(12.4462, 6.8887, 17.8102)
Luminance0.0689 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2276 #227E2A
analogous
#58227E #7E2276 #7E2248
triadic
#7E2276 #767E22 #22767E
tetradic
#7E2276 #7E5822 #227E2A #22487E
square
#7E2276 #7E5822 #227E2A #22487E
split-complementary
#7E2276 #487E22 #227E58
monochromatic
#1E081C #4E1549 #7E2276 #AE2FA3 #CF4CC3

Accessibility & contrast

On white

8.83
#7E2276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#7E2276 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2276
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2276#FFFFFF#000000##FFFFFF
##7E22761.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4278
Deuteranopia (green-blind)
#3F4F74
Tritanopia (blue-blind)
#832C49
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7e2276;
/* rgb */ color: rgb(126, 34, 118);
/* oklch */ color: oklch(43.1% 0.159 331.7);
Tailwind
colors: {
  custom: {
    50: '#a6679e',
    500: '#7e2276',
    950: '#000000',
  },
}
SCSS
$custom: #7e2276;
$custom-light: #a6679e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2276",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 118
  },
  "hsl": {
    "h": 305.217,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.43086,
    "c": 0.15903,
    "h": 331.7
  },
  "luminance": 0.06888
}

Semantic roles & 50–950 ramp

primary
#7E2276
secondary
#4BB154
accent
#E15447
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E2276

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

Preview Lab → · Contrast checker → · Palette generator →

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