#7E228A#7E228A

#7E228A is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.3% C 0.176 H 322.8°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#7E228A
RGBrgb(126, 34, 138)
HSLhsl(293, 60%, 34%)
HSVhsv(293, 75%, 54%)
CMYKcmyk(8.7%, 75.4%, 0%, 45.9%)
CIE-LABlab(32.73, 52.50, -38.03)
CIE-LCHlch(32.73, 64.82, 324.08°)
OKLaboklab(44.31% 0.14 -0.1062)
OKLCHoklch(44.31% 0.176 322.8)
XYZxyz(13.7632, 7.4155, 24.7462)
Luminance0.0741 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E228A #2E8A22
analogous
#4A228A #7E228A #8A2262
triadic
#7E228A #8A7E22 #228A7E
tetradic
#7E228A #8A4A22 #2E8A22 #22628A
square
#7E228A #8A4A22 #2E8A22 #22628A
split-complementary
#7E228A #628A22 #228A4A
monochromatic
#240A28 #511659 #7E228A #AB2EBB #C552D4

Accessibility & contrast

On white

8.46
#7E228A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#7E228A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E228A
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E228A#FFFFFF#000000##FFFFFF
##7E228A1.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468D
Deuteranopia (green-blind)
#325088
Tritanopia (blue-blind)
#803554
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7e228a;
/* rgb */ color: rgb(126, 34, 138);
/* oklch */ color: oklch(44.3% 0.176 322.8);
Tailwind
colors: {
  custom: {
    50: '#a767ad',
    500: '#7e228a',
    950: '#000000',
  },
}
SCSS
$custom: #7e228a;
$custom-light: #a767ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7e228a",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 138
  },
  "hsl": {
    "h": 293.077,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.44314,
    "c": 0.17574,
    "h": 322.8
  },
  "luminance": 0.07415
}

Semantic roles & 50–950 ramp

primary
#7E228A
secondary
#5CB850
accent
#E44457
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E228A

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

Preview Lab → · Contrast checker → · Palette generator →

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