#7E226B#7E226B

#7E226B is a dark, vivid pink. Relative luminance 0.066; OKLCH L 42.5% C 0.151 H 337.4°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#7E226B
RGBrgb(126, 34, 107)
HSLhsl(312, 58%, 31%)
HSVhsv(312, 73%, 49%)
CMYKcmyk(0%, 73%, 15.1%, 50.6%)
CIE-LABlab(30.98, 47.15, -21.29)
CIE-LCHlch(30.98, 51.74, 335.70°)
OKLaboklab(42.49% 0.139 -0.0578)
OKLCHoklch(42.49% 0.151 337.4)
XYZxyz(11.8303, 6.6423, 14.5661)
Luminance0.0664 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E226B #227E35
analogous
#63227E #7E226B #7E223D
triadic
#7E226B #6B7E22 #226B7E
tetradic
#7E226B #7E6322 #227E35 #223D7E
square
#7E226B #7E6322 #227E35 #223D7E
split-complementary
#7E226B #3D7E22 #227E63
monochromatic
#1E0819 #4E1542 #7E226B #AE2F94 #CF4CB4

Accessibility & contrast

On white

9.02
#7E226B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#7E226B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E226B
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E226B#FFFFFF#000000##FFFFFF
##7E226B1.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25406D
Deuteranopia (green-blind)
#434E69
Tritanopia (blue-blind)
#852743
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7e226b;
/* rgb */ color: rgb(126, 34, 107);
/* oklch */ color: oklch(42.5% 0.151 337.4);
Tailwind
colors: {
  custom: {
    50: '#a76695',
    500: '#7e226b',
    950: '#000000',
  },
}
SCSS
$custom: #7e226b;
$custom-light: #a76695;
$custom-dark: #000000;
JSON
{
  "hex": "#7e226b",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 107
  },
  "hsl": {
    "h": 312.391,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.42485,
    "c": 0.15053,
    "h": 337.4
  },
  "luminance": 0.06641
}

Semantic roles & 50–950 ramp

primary
#7E226B
secondary
#4BB160
accent
#E16747
background
#FAF6F9
surface
#F4EBF1
border
#CEC6CB
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7E226B

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

Preview Lab → · Contrast checker → · Palette generator →

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