#7E229D#7E229D

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

Color values

HEX#7E229D
RGBrgb(126, 34, 157)
HSLhsl(285, 64%, 37%)
HSVhsv(285, 78%, 62%)
CMYKcmyk(19.7%, 78.3%, 0%, 38.4%)
CIE-LABlab(34.01, 56.19, -47.62)
CIE-LCHlch(34.01, 73.65, 319.72°)
OKLaboklab(45.63% 0.1378 -0.1343)
OKLCHoklch(45.63% 0.192 315.7)
XYZxyz(15.2610, 8.0146, 32.6348)
Luminance0.0801 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E229D #419D22
analogous
#40229D #7E229D #9D227F
triadic
#7E229D #9D7E22 #229D7E
tetradic
#7E229D #9D4022 #419D22 #227F9D
square
#7E229D #9D4022 #419D22 #227F9D
split-complementary
#7E229D #7F9D22 #229D40
monochromatic
#2D0C38 #56176B #7E229D #A62DCF #BC5DDC

Accessibility & contrast

On white

8.07
#7E229D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E229D
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E229D#FFFFFF#000000##FFFFFF
##7E229D1.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA0
Deuteranopia (green-blind)
#1F529A
Tritanopia (blue-blind)
#7C3E5F
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e229d;
/* rgb */ color: rgb(126, 34, 157);
/* oklch */ color: oklch(45.6% 0.192 315.7);
Tailwind
colors: {
  custom: {
    50: '#a868bb',
    500: '#7e229d',
    950: '#000000',
  },
}
SCSS
$custom: #7e229d;
$custom-light: #a868bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e229d",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 284.878,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.45628,
    "c": 0.19245,
    "h": 315.7
  },
  "luminance": 0.08014
}

Semantic roles & 50–950 ramp

primary
#7E229D
secondary
#74C15A
accent
#E7406A
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E229D

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

Preview Lab → · Contrast checker → · Palette generator →

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