#7E228E#7E228E

#7E228E is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.6% C 0.179 H 321.2°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#7E228E
RGBrgb(126, 34, 142)
HSLhsl(291, 61%, 35%)
HSVhsv(291, 76%, 56%)
CMYKcmyk(11.3%, 76.1%, 0%, 44.3%)
CIE-LABlab(32.99, 53.25, -40.09)
CIE-LCHlch(32.99, 66.65, 323.03°)
OKLaboklab(44.58% 0.1397 -0.1122)
OKLCHoklch(44.58% 0.179 321.2)
XYZxyz(14.0581, 7.5334, 26.2996)
Luminance0.0753 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E228E #328E22
analogous
#48228E #7E228E #8E2268
triadic
#7E228E #8E7E22 #228E7E
tetradic
#7E228E #8E4822 #328E22 #22688E
square
#7E228E #8E4822 #328E22 #22688E
split-complementary
#7E228E #688E22 #228E48
monochromatic
#260A2B #52165D #7E228E #AA2EBF #C354D6

Accessibility & contrast

On white

8.38
#7E228E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#7E228E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E228E
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E228E#FFFFFF#000000##FFFFFF
##7E228E1.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004791
Deuteranopia (green-blind)
#2F518C
Tritanopia (blue-blind)
#7F3757
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e228e;
/* rgb */ color: rgb(126, 34, 142);
/* oklch */ color: oklch(44.6% 0.179 321.2);
Tailwind
colors: {
  custom: {
    50: '#a768b0',
    500: '#7e228e',
    950: '#000000',
  },
}
SCSS
$custom: #7e228e;
$custom-light: #a768b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e228e",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 291.111,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.4458,
    "c": 0.17921,
    "h": 321.2
  },
  "luminance": 0.07533
}

Semantic roles & 50–950 ramp

primary
#7E228E
secondary
#61BA52
accent
#E4435B
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E228E

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

Preview Lab → · Contrast checker → · Palette generator →

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