#7E2288#7E2288

#7E2288 is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.2% C 0.174 H 323.6°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#7E2288
RGBrgb(126, 34, 136)
HSLhsl(294, 60%, 33%)
HSVhsv(294, 75%, 53%)
CMYKcmyk(7.4%, 75%, 0%, 46.7%)
CIE-LABlab(32.61, 52.13, -36.99)
CIE-LCHlch(32.61, 63.92, 324.64°)
OKLaboklab(44.18% 0.1401 -0.1032)
OKLCHoklch(44.18% 0.174 323.6)
XYZxyz(13.6197, 7.3581, 23.9907)
Luminance0.0736 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2288 #2C8822
analogous
#4B2288 #7E2288 #88225F
triadic
#7E2288 #887E22 #22887E
tetradic
#7E2288 #884B22 #2C8822 #225F88
square
#7E2288 #884B22 #2C8822 #225F88
split-complementary
#7E2288 #5F8822 #22884B
monochromatic
#230A26 #511657 #7E2288 #AB2EB9 #C751D3

Accessibility & contrast

On white

8.50
#7E2288 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#7E2288 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2288
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2288#FFFFFF#000000##FFFFFF
##7E22881.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468B
Deuteranopia (green-blind)
#345086
Tritanopia (blue-blind)
#803453
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7e2288;
/* rgb */ color: rgb(126, 34, 136);
/* oklch */ color: oklch(44.2% 0.174 323.6);
Tailwind
colors: {
  custom: {
    50: '#a767ab',
    500: '#7e2288',
    950: '#000000',
  },
}
SCSS
$custom: #7e2288;
$custom-light: #a767ab;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2288",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 136
  },
  "hsl": {
    "h": 294.118,
    "s": 60,
    "l": 33.333
  },
  "oklch": {
    "l": 0.44184,
    "c": 0.17403,
    "h": 323.6
  },
  "luminance": 0.07357
}

Semantic roles & 50–950 ramp

primary
#7E2288
secondary
#59B74F
accent
#E34554
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2288

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

Preview Lab → · Contrast checker → · Palette generator →

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