#7E2295#7E2295

#7E2295 is a mid, vivid purple. Relative luminance 0.077; OKLCH L 45.1% C 0.185 H 318.6°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#7E2295
RGBrgb(126, 34, 149)
HSLhsl(288, 63%, 36%)
HSVhsv(288, 77%, 58%)
CMYKcmyk(15.4%, 77.2%, 0%, 41.6%)
CIE-LABlab(33.46, 54.60, -43.64)
CIE-LCHlch(33.46, 69.90, 321.37°)
OKLaboklab(45.06% 0.139 -0.1226)
OKLCHoklch(45.06% 0.185 318.6)
XYZxyz(14.6003, 7.7503, 29.1548)
Luminance0.0775 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2295 #399522
analogous
#442295 #7E2295 #952272
triadic
#7E2295 #957E22 #22957E
tetradic
#7E2295 #954422 #399522 #227295
square
#7E2295 #954422 #399522 #227295
split-complementary
#7E2295 #729522 #229544
monochromatic
#2A0B31 #541763 #7E2295 #A82DC7 #BF58D9

Accessibility & contrast

On white

8.24
#7E2295 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#7E2295 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2295
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2295#FFFFFF#000000##FFFFFF
##7E22951.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004998
Deuteranopia (green-blind)
#295292
Tritanopia (blue-blind)
#7E3A5A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e2295;
/* rgb */ color: rgb(126, 34, 149);
/* oklch */ color: oklch(45.1% 0.185 318.6);
Tailwind
colors: {
  custom: {
    50: '#a768b5',
    500: '#7e2295',
    950: '#000000',
  },
}
SCSS
$custom: #7e2295;
$custom-light: #a768b5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2295",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 149
  },
  "hsl": {
    "h": 288,
    "s": 62.842,
    "l": 35.882
  },
  "oklch": {
    "l": 0.45059,
    "c": 0.18535,
    "h": 318.6
  },
  "luminance": 0.0775
}

Semantic roles & 50–950 ramp

primary
#7E2295
secondary
#6ABD56
accent
#E64263
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2295

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

Preview Lab → · Contrast checker → · Palette generator →

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