#7E227B#7E227B

#7E227B is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.4% C 0.163 H 329.3°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#7E227B
RGBrgb(126, 34, 123)
HSLhsl(302, 58%, 31%)
HSVhsv(302, 73%, 49%)
CMYKcmyk(0%, 73%, 2.4%, 50.6%)
CIE-LABlab(31.83, 49.79, -30.11)
CIE-LCHlch(31.83, 58.19, 328.84°)
OKLaboklab(43.38% 0.1403 -0.0831)
OKLCHoklch(43.38% 0.163 329.3)
XYZxyz(12.7513, 7.0107, 19.4166)
Luminance0.0701 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E227B #227E25
analogous
#53227E #7E227B #7E224D
triadic
#7E227B #7B7E22 #227B7E
tetradic
#7E227B #7E5322 #227E25 #224D7E
square
#7E227B #7E5322 #227E25 #224D7E
split-complementary
#7E227B #4D7E22 #227E53
monochromatic
#1E081D #4E154C #7E227B #AE2FAA #CF4CCA

Accessibility & contrast

On white

8.74
#7E227B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E227B
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E227B#FFFFFF#000000##FFFFFF
##7E227B1.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16437D
Deuteranopia (green-blind)
#3C4F79
Tritanopia (blue-blind)
#832E4C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7e227b;
/* rgb */ color: rgb(126, 34, 123);
/* oklch */ color: oklch(43.4% 0.163 329.3);
Tailwind
colors: {
  custom: {
    50: '#a767a1',
    500: '#7e227b',
    950: '#000000',
  },
}
SCSS
$custom: #7e227b;
$custom-light: #a767a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e227b",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 123
  },
  "hsl": {
    "h": 301.957,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.43377,
    "c": 0.16308,
    "h": 329.3
  },
  "luminance": 0.0701
}

Semantic roles & 50–950 ramp

primary
#7E227B
secondary
#4BB14F
accent
#E14C47
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E227B

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

Preview Lab → · Contrast checker → · Palette generator →

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