#7E227D#7E227D

#7E227D is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.5% C 0.165 H 328.4°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#7E227D
RGBrgb(126, 34, 125)
HSLhsl(301, 58%, 31%)
HSVhsv(301, 73%, 49%)
CMYKcmyk(0%, 73%, 0.8%, 50.6%)
CIE-LABlab(31.95, 50.14, -31.18)
CIE-LCHlch(31.95, 59.05, 328.12°)
OKLaboklab(43.5% 0.1403 -0.0863)
OKLCHoklch(43.5% 0.165 328.4)
XYZxyz(12.8777, 7.0613, 20.0828)
Luminance0.0706 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E227D #227E23
analogous
#51227E #7E227D #7E224F
triadic
#7E227D #7D7E22 #227D7E
tetradic
#7E227D #7E5122 #227E23 #224F7E
square
#7E227D #7E5122 #227E23 #224F7E
split-complementary
#7E227D #4F7E22 #227E51
monochromatic
#1E081D #4E154D #7E227D #AE2FAD #CF4CCD

Accessibility & contrast

On white

8.71
#7E227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#7E227D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E227D
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E227D#FFFFFF#000000##FFFFFF
##7E227D1.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134380
Deuteranopia (green-blind)
#3B4F7B
Tritanopia (blue-blind)
#822F4D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7e227d;
/* rgb */ color: rgb(126, 34, 125);
/* oklch */ color: oklch(43.5% 0.165 328.4);
Tailwind
colors: {
  custom: {
    50: '#a767a3',
    500: '#7e227d',
    950: '#000000',
  },
}
SCSS
$custom: #7e227d;
$custom-light: #a767a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e227d",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 300.652,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.43497,
    "c": 0.16474,
    "h": 328.4
  },
  "luminance": 0.0706
}

Semantic roles & 50–950 ramp

primary
#7E227D
secondary
#4BB14C
accent
#E14947
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E227D

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

Preview Lab → · Contrast checker → · Palette generator →

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