#7E229C#7E229C

#7E229C is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.6% C 0.192 H 316.1°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#7E229C
RGBrgb(126, 34, 156)
HSLhsl(285, 64%, 37%)
HSVhsv(285, 78%, 61%)
CMYKcmyk(19.2%, 78.2%, 0%, 38.8%)
CIE-LABlab(33.94, 55.98, -47.12)
CIE-LCHlch(33.94, 73.18, 319.91°)
OKLaboklab(45.56% 0.138 -0.1329)
OKLCHoklch(45.56% 0.192 316.1)
XYZxyz(15.1760, 7.9806, 32.1870)
Luminance0.0798 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E229C #409C22
analogous
#41229C #7E229C #9C227D
triadic
#7E229C #9C7E22 #229C7E
tetradic
#7E229C #9C4122 #409C22 #227D9C
square
#7E229C #9C4122 #409C22 #227D9C
split-complementary
#7E229C #7D9C22 #229C41
monochromatic
#2D0C38 #55176A #7E229C #A72DCE #BC5DDC

Accessibility & contrast

On white

8.09
#7E229C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#7E229C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E229C
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E229C#FFFFFF#000000##FFFFFF
##7E229C1.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9F
Deuteranopia (green-blind)
#205299
Tritanopia (blue-blind)
#7C3E5E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e229c;
/* rgb */ color: rgb(126, 34, 156);
/* oklch */ color: oklch(45.6% 0.192 316.1);
Tailwind
colors: {
  custom: {
    50: '#a768ba',
    500: '#7e229c',
    950: '#000000',
  },
}
SCSS
$custom: #7e229c;
$custom-light: #a768ba;
$custom-dark: #000000;
JSON
{
  "hex": "#7e229c",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 156
  },
  "hsl": {
    "h": 285.246,
    "s": 64.211,
    "l": 37.255
  },
  "oklch": {
    "l": 0.45555,
    "c": 0.19156,
    "h": 316.1
  },
  "luminance": 0.0798
}

Semantic roles & 50–950 ramp

primary
#7E229C
secondary
#73C05A
accent
#E7416A
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E229C

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

Preview Lab → · Contrast checker → · Palette generator →

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