#7E229F#7E229F

#7E229F is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.8% C 0.194 H 315.1°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#7E229F
RGBrgb(126, 34, 159)
HSLhsl(284, 65%, 38%)
HSVhsv(284, 79%, 62%)
CMYKcmyk(20.8%, 78.6%, 0%, 37.6%)
CIE-LABlab(34.16, 56.59, -48.60)
CIE-LCHlch(34.16, 74.59, 319.34°)
OKLaboklab(45.77% 0.1375 -0.1372)
OKLCHoklch(45.77% 0.194 315.1)
XYZxyz(15.4332, 8.0835, 33.5415)
Luminance0.0808 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E229F #439F22
analogous
#3F229F #7E229F #9F2281
triadic
#7E229F #9F7E22 #229F7E
tetradic
#7E229F #9F3F22 #439F22 #22819F
square
#7E229F #9F3F22 #439F22 #22819F
split-complementary
#7E229F #819F22 #229F3F
monochromatic
#2E0C3A #56176D #7E229F #A62DD1 #BB5FDD

Accessibility & contrast

On white

8.03
#7E229F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#7E229F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E229F
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E229F#FFFFFF#000000##FFFFFF
##7E229F1.008.032.628.03
#FFFFFF8.031.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e229f;
/* rgb */ color: rgb(126, 34, 159);
/* oklch */ color: oklch(45.8% 0.194 315.1);
Tailwind
colors: {
  custom: {
    50: '#a868bc',
    500: '#7e229f',
    950: '#000000',
  },
}
SCSS
$custom: #7e229f;
$custom-light: #a868bc;
$custom-dark: #000000;
JSON
{
  "hex": "#7e229f",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 284.16,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.45774,
    "c": 0.19424,
    "h": 315.1
  },
  "luminance": 0.08083
}

Semantic roles & 50–950 ramp

primary
#7E229F
secondary
#76C15B
accent
#E8406C
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E229F

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

Preview Lab → · Contrast checker → · Palette generator →

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