#7E228C#7E228C

#7E228C is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.4% C 0.177 H 322.0°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#7E228C
RGBrgb(126, 34, 140)
HSLhsl(292, 61%, 34%)
HSVhsv(292, 76%, 55%)
CMYKcmyk(10%, 75.7%, 0%, 45.1%)
CIE-LABlab(32.86, 52.87, -39.06)
CIE-LCHlch(32.86, 65.74, 323.55°)
OKLaboklab(44.45% 0.1399 -0.1092)
OKLCHoklch(44.45% 0.177 322)
XYZxyz(13.9093, 7.4739, 25.5158)
Luminance0.0747 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E228C #308C22
analogous
#49228C #7E228C #8C2265
triadic
#7E228C #8C7E22 #228C7E
tetradic
#7E228C #8C4922 #308C22 #22658C
square
#7E228C #8C4922 #308C22 #22658C
split-complementary
#7E228C #658C22 #228C49
monochromatic
#250A2A #52165B #7E228C #AA2EBD #C453D5

Accessibility & contrast

On white

8.42
#7E228C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#7E228C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E228C
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E228C#FFFFFF#000000##FFFFFF
##7E228C1.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478F
Deuteranopia (green-blind)
#31518A
Tritanopia (blue-blind)
#7F3655
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7e228c;
/* rgb */ color: rgb(126, 34, 140);
/* oklch */ color: oklch(44.4% 0.177 322.0);
Tailwind
colors: {
  custom: {
    50: '#a767ae',
    500: '#7e228c',
    950: '#000000',
  },
}
SCSS
$custom: #7e228c;
$custom-light: #a767ae;
$custom-dark: #000000;
JSON
{
  "hex": "#7e228c",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 292.075,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.44446,
    "c": 0.17748,
    "h": 322
  },
  "luminance": 0.07473
}

Semantic roles & 50–950 ramp

primary
#7E228C
secondary
#5FB951
accent
#E44459
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E228C

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

Preview Lab → · Contrast checker → · Palette generator →

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