#7E227A#7E227A

#7E227A is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.3% C 0.162 H 329.8°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#7E227A
RGBrgb(126, 34, 122)
HSLhsl(303, 58%, 31%)
HSVhsv(303, 73%, 49%)
CMYKcmyk(0%, 73%, 3.2%, 50.6%)
CIE-LABlab(31.77, 49.62, -29.57)
CIE-LCHlch(31.77, 57.76, 329.21°)
OKLaboklab(43.32% 0.1403 -0.0816)
OKLCHoklch(43.32% 0.162 329.8)
XYZxyz(12.6890, 6.9858, 19.0887)
Luminance0.0698 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E227A #227E26
analogous
#54227E #7E227A #7E224C
triadic
#7E227A #7A7E22 #227A7E
tetradic
#7E227A #7E5422 #227E26 #224C7E
square
#7E227A #7E5422 #227E26 #224C7E
split-complementary
#7E227A #4C7E22 #227E54
monochromatic
#1E081D #4E154B #7E227A #AE2FA9 #CF4CC9

Accessibility & contrast

On white

8.76
#7E227A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#7E227A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E227A
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E227A#FFFFFF#000000##FFFFFF
##7E227A1.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17437C
Deuteranopia (green-blind)
#3D4F78
Tritanopia (blue-blind)
#832E4B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7e227a;
/* rgb */ color: rgb(126, 34, 122);
/* oklch */ color: oklch(43.3% 0.162 329.8);
Tailwind
colors: {
  custom: {
    50: '#a667a1',
    500: '#7e227a',
    950: '#000000',
  },
}
SCSS
$custom: #7e227a;
$custom-light: #a667a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e227a",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 122
  },
  "hsl": {
    "h": 302.609,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.43318,
    "c": 0.16226,
    "h": 329.8
  },
  "luminance": 0.06985
}

Semantic roles & 50–950 ramp

primary
#7E227A
secondary
#4BB150
accent
#E14E47
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #7E227A

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

Preview Lab → · Contrast checker → · Palette generator →

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