#7E229A#7E229A

#7E229A is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.4% C 0.190 H 316.8°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#7E229A
RGBrgb(126, 34, 154)
HSLhsl(286, 64%, 37%)
HSVhsv(286, 78%, 60%)
CMYKcmyk(18.2%, 77.9%, 0%, 39.6%)
CIE-LABlab(33.80, 55.59, -46.13)
CIE-LCHlch(33.80, 72.24, 320.31°)
OKLaboklab(45.41% 0.1383 -0.1299)
OKLCHoklch(45.41% 0.19 316.8)
XYZxyz(15.0081, 7.9134, 31.3025)
Luminance0.0791 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E229A #3E9A22
analogous
#42229A #7E229A #9A227A
triadic
#7E229A #9A7E22 #229A7E
tetradic
#7E229A #9A4222 #3E9A22 #227A9A
square
#7E229A #9A4222 #3E9A22 #227A9A
split-complementary
#7E229A #7A9A22 #229A42
monochromatic
#2C0C36 #551768 #7E229A #A72DCC #BD5BDB

Accessibility & contrast

On white

8.13
#7E229A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7E229A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E229A
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E229A#FFFFFF#000000##FFFFFF
##7E229A1.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9D
Deuteranopia (green-blind)
#235297
Tritanopia (blue-blind)
#7C3D5D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e229a;
/* rgb */ color: rgb(126, 34, 154);
/* oklch */ color: oklch(45.4% 0.190 316.8);
Tailwind
colors: {
  custom: {
    50: '#a768b8',
    500: '#7e229a',
    950: '#000000',
  },
}
SCSS
$custom: #7e229a;
$custom-light: #a768b8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e229a",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 154
  },
  "hsl": {
    "h": 286,
    "s": 63.83,
    "l": 36.863
  },
  "oklch": {
    "l": 0.45412,
    "c": 0.18978,
    "h": 316.8
  },
  "luminance": 0.07913
}

Semantic roles & 50–950 ramp

primary
#7E229A
secondary
#70BF58
accent
#E74168
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E229A

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

Preview Lab → · Contrast checker → · Palette generator →

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