#7E227E#7E227E

#7E227E is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.6% C 0.166 H 328.0°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#7E227E
RGBrgb(126, 34, 126)
HSLhsl(300, 58%, 31%)
HSVhsv(300, 73%, 49%)
CMYKcmyk(0%, 73%, 0%, 50.6%)
CIE-LABlab(32.00, 50.32, -31.72)
CIE-LCHlch(32.00, 59.48, 327.78°)
OKLaboklab(43.56% 0.1404 -0.0878)
OKLCHoklch(43.56% 0.166 328)
XYZxyz(12.9419, 7.0870, 20.4209)
Luminance0.0709 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E227E #227E22
analogous
#50227E #7E227E #7E2250
triadic
#7E227E #7E7E22 #227E7E
tetradic
#7E227E #7E5022 #227E22 #22507E
square
#7E227E #7E5022 #227E22 #22507E
split-complementary
#7E227E #507E22 #227E50
monochromatic
#1E081E #4E154E #7E227E #AE2FAE #CF4CCF

Accessibility & contrast

On white

8.69
#7E227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#7E227E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E227E
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E227E#FFFFFF#000000##FFFFFF
##7E227E1.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124481
Deuteranopia (green-blind)
#3A4F7C
Tritanopia (blue-blind)
#82304E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7e227e;
/* rgb */ color: rgb(126, 34, 126);
/* oklch */ color: oklch(43.6% 0.166 328.0);
Tailwind
colors: {
  custom: {
    50: '#a767a4',
    500: '#7e227e',
    950: '#000000',
  },
}
SCSS
$custom: #7e227e;
$custom-light: #a767a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e227e",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 300,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.43557,
    "c": 0.16556,
    "h": 328
  },
  "luminance": 0.07086
}

Semantic roles & 50–950 ramp

primary
#7E227E
secondary
#4BB14B
accent
#E14747
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E227E

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

Preview Lab → · Contrast checker → · Palette generator →

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