#7E2277#7E2277

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

Color values

HEX#7E2277
RGBrgb(126, 34, 119)
HSLhsl(305, 58%, 31%)
HSVhsv(305, 73%, 49%)
CMYKcmyk(0%, 73%, 5.6%, 50.6%)
CIE-LABlab(31.61, 49.11, -27.94)
CIE-LCHlch(31.61, 56.50, 330.36°)
OKLaboklab(43.14% 0.1401 -0.0769)
OKLCHoklch(43.14% 0.16 331.2)
XYZxyz(12.5060, 6.9126, 18.1248)
Luminance0.0691 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2277 #227E29
analogous
#57227E #7E2277 #7E2249
triadic
#7E2277 #777E22 #22777E
tetradic
#7E2277 #7E5722 #227E29 #22497E
square
#7E2277 #7E5722 #227E29 #22497E
split-complementary
#7E2277 #497E22 #227E57
monochromatic
#1E081C #4E1549 #7E2277 #AE2FA5 #CF4CC5

Accessibility & contrast

On white

8.81
#7E2277 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E2277
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2277#FFFFFF#000000##FFFFFF
##7E22771.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4279
Deuteranopia (green-blind)
#3E4F75
Tritanopia (blue-blind)
#832D4A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7e2277;
/* rgb */ color: rgb(126, 34, 119);
/* oklch */ color: oklch(43.1% 0.160 331.2);
Tailwind
colors: {
  custom: {
    50: '#a6679e',
    500: '#7e2277',
    950: '#000000',
  },
}
SCSS
$custom: #7e2277;
$custom-light: #a6679e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2277",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 119
  },
  "hsl": {
    "h": 304.565,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.43143,
    "c": 0.15984,
    "h": 331.2
  },
  "luminance": 0.06912
}

Semantic roles & 50–950 ramp

primary
#7E2277
secondary
#4BB153
accent
#E15347
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E2277

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

Preview Lab → · Contrast checker → · Palette generator →

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