#7E228D#7E228D

#7E228D is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.5% C 0.178 H 321.6°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#7E228D
RGBrgb(126, 34, 141)
HSLhsl(292, 61%, 34%)
HSVhsv(292, 76%, 55%)
CMYKcmyk(10.6%, 75.9%, 0%, 44.7%)
CIE-LABlab(32.93, 53.06, -39.57)
CIE-LCHlch(32.93, 66.19, 323.29°)
OKLaboklab(44.51% 0.1398 -0.1107)
OKLCHoklch(44.51% 0.178 321.6)
XYZxyz(13.9834, 7.5035, 25.9059)
Luminance0.0750 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E228D #318D22
analogous
#49228D #7E228D #8D2267
triadic
#7E228D #8D7E22 #228D7E
tetradic
#7E228D #8D4922 #318D22 #22678D
square
#7E228D #8D4922 #318D22 #22678D
split-complementary
#7E228D #678D22 #228D49
monochromatic
#260A2A #52165C #7E228D #AA2EBE #C354D6

Accessibility & contrast

On white

8.40
#7E228D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#7E228D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E228D
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E228D#FFFFFF#000000##FFFFFF
##7E228D1.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004790
Deuteranopia (green-blind)
#30518B
Tritanopia (blue-blind)
#7F3756
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7e228d;
/* rgb */ color: rgb(126, 34, 141);
/* oklch */ color: oklch(44.5% 0.178 321.6);
Tailwind
colors: {
  custom: {
    50: '#a768af',
    500: '#7e228d',
    950: '#000000',
  },
}
SCSS
$custom: #7e228d;
$custom-light: #a768af;
$custom-dark: #000000;
JSON
{
  "hex": "#7e228d",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 291.589,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.44513,
    "c": 0.17835,
    "h": 321.6
  },
  "luminance": 0.07503
}

Semantic roles & 50–950 ramp

primary
#7E228D
secondary
#60B951
accent
#E4445A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E228D

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

Preview Lab → · Contrast checker → · Palette generator →

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