#7E228B#7E228B

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

Color values

HEX#7E228B
RGBrgb(126, 34, 139)
HSLhsl(293, 61%, 34%)
HSVhsv(293, 76%, 55%)
CMYKcmyk(9.4%, 75.5%, 0%, 45.5%)
CIE-LABlab(32.80, 52.68, -38.54)
CIE-LCHlch(32.80, 65.28, 323.81°)
OKLaboklab(44.38% 0.14 -0.1077)
OKLCHoklch(44.38% 0.177 322.4)
XYZxyz(13.8359, 7.4446, 25.1293)
Luminance0.0744 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E228B #2F8B22
analogous
#4A228B #7E228B #8B2264
triadic
#7E228B #8B7E22 #228B7E
tetradic
#7E228B #8B4A22 #2F8B22 #22648B
square
#7E228B #8B4A22 #2F8B22 #22648B
split-complementary
#7E228B #648B22 #228B4A
monochromatic
#250A29 #51165A #7E228B #AB2EBC #C553D5

Accessibility & contrast

On white

8.44
#7E228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E228B
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E228B#FFFFFF#000000##FFFFFF
##7E228B1.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468E
Deuteranopia (green-blind)
#325189
Tritanopia (blue-blind)
#803655
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7e228b;
/* rgb */ color: rgb(126, 34, 139);
/* oklch */ color: oklch(44.4% 0.177 322.4);
Tailwind
colors: {
  custom: {
    50: '#a767ad',
    500: '#7e228b',
    950: '#000000',
  },
}
SCSS
$custom: #7e228b;
$custom-light: #a767ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7e228b",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 292.571,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.4438,
    "c": 0.17661,
    "h": 322.4
  },
  "luminance": 0.07444
}

Semantic roles & 50–950 ramp

primary
#7E228B
secondary
#5DB850
accent
#E44458
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E228B

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

Preview Lab → · Contrast checker → · Palette generator →

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