#7E229B#7E229B

#7E229B is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.5% C 0.191 H 316.4°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#7E229B
RGBrgb(126, 34, 155)
HSLhsl(286, 64%, 37%)
HSVhsv(286, 78%, 61%)
CMYKcmyk(18.7%, 78.1%, 0%, 39.2%)
CIE-LABlab(33.87, 55.79, -46.63)
CIE-LCHlch(33.87, 72.71, 320.11°)
OKLaboklab(45.48% 0.1382 -0.1314)
OKLCHoklch(45.48% 0.191 316.4)
XYZxyz(15.0917, 7.9469, 31.7429)
Luminance0.0795 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E229B #3F9B22
analogous
#42229B #7E229B #9B227C
triadic
#7E229B #9B7E22 #229B7E
tetradic
#7E229B #9B4222 #3F9B22 #227C9B
square
#7E229B #9B4222 #3F9B22 #227C9B
split-complementary
#7E229B #7C9B22 #229B42
monochromatic
#2C0C37 #551769 #7E229B #A72DCD #BD5CDB

Accessibility & contrast

On white

8.11
#7E229B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#7E229B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E229B
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E229B#FFFFFF#000000##FFFFFF
##7E229B1.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9E
Deuteranopia (green-blind)
#225298
Tritanopia (blue-blind)
#7C3D5E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e229b;
/* rgb */ color: rgb(126, 34, 155);
/* oklch */ color: oklch(45.5% 0.191 316.4);
Tailwind
colors: {
  custom: {
    50: '#a768b9',
    500: '#7e229b',
    950: '#000000',
  },
}
SCSS
$custom: #7e229b;
$custom-light: #a768b9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e229b",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 155
  },
  "hsl": {
    "h": 285.62,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.45483,
    "c": 0.19067,
    "h": 316.4
  },
  "luminance": 0.07946
}

Semantic roles & 50–950 ramp

primary
#7E229B
secondary
#72C059
accent
#E74169
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E229B

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

Preview Lab → · Contrast checker → · Palette generator →

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