#7E229E#7E229E

#7E229E is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.7% C 0.193 H 315.4°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#7E229E
RGBrgb(126, 34, 158)
HSLhsl(285, 65%, 38%)
HSVhsv(285, 78%, 62%)
CMYKcmyk(20.3%, 78.5%, 0%, 38%)
CIE-LABlab(34.08, 56.39, -48.11)
CIE-LCHlch(34.08, 74.12, 319.53°)
OKLaboklab(45.7% 0.1377 -0.1357)
OKLCHoklch(45.7% 0.193 315.4)
XYZxyz(15.3468, 8.0489, 33.0863)
Luminance0.0805 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E229E #429E22
analogous
#40229E #7E229E #9E2280
triadic
#7E229E #9E7E22 #229E7E
tetradic
#7E229E #9E4022 #429E22 #22809E
square
#7E229E #9E4022 #429E22 #22809E
split-complementary
#7E229E #809E22 #229E40
monochromatic
#2E0C39 #56176C #7E229E #A62DD0 #BC5EDC

Accessibility & contrast

On white

8.05
#7E229E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#7E229E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E229E
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E229E#FFFFFF#000000##FFFFFF
##7E229E1.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA1
Deuteranopia (green-blind)
#1D529B
Tritanopia (blue-blind)
#7B3F60
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e229e;
/* rgb */ color: rgb(126, 34, 158);
/* oklch */ color: oklch(45.7% 0.193 315.4);
Tailwind
colors: {
  custom: {
    50: '#a868bb',
    500: '#7e229e',
    950: '#000000',
  },
}
SCSS
$custom: #7e229e;
$custom-light: #a868bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e229e",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 284.516,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.45701,
    "c": 0.19335,
    "h": 315.4
  },
  "luminance": 0.08048
}

Semantic roles & 50–950 ramp

primary
#7E229E
secondary
#75C15B
accent
#E8406B
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E229E

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

Preview Lab → · Contrast checker → · Palette generator →

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