#7A229E#7A229E

#7A229E is a mid, vivid purple. Relative luminance 0.077; OKLCH L 45.1% C 0.192 H 313.6°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#7A229E
RGBrgb(122, 34, 158)
HSLhsl(283, 65%, 38%)
HSVhsv(283, 78%, 62%)
CMYKcmyk(22.8%, 78.5%, 0%, 38%)
CIE-LABlab(33.46, 55.62, -49.15)
CIE-LCHlch(33.46, 74.23, 318.53°)
OKLaboklab(45.13% 0.1325 -0.1389)
OKLCHoklch(45.13% 0.192 313.6)
XYZxyz(14.7685, 7.7507, 33.0592)
Luminance0.0775 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A229E #469E22
analogous
#3C229E #7A229E #9E2284
triadic
#7A229E #9E7A22 #229E7A
tetradic
#7A229E #9E3C22 #469E22 #22849E
square
#7A229E #9E3C22 #469E22 #22849E
split-complementary
#7A229E #849E22 #229E3C
monochromatic
#2C0C39 #53176C #7A229E #A12DD0 #B85EDC

Accessibility & contrast

On white

8.24
#7A229E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#7A229E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A229E
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A229E#FFFFFF#000000##FFFFFF
##7A229E1.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA1
Deuteranopia (green-blind)
#15519B
Tritanopia (blue-blind)
#763F60
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7a229e;
/* rgb */ color: rgb(122, 34, 158);
/* oklch */ color: oklch(45.1% 0.192 313.6);
Tailwind
colors: {
  custom: {
    50: '#a568bb',
    500: '#7a229e',
    950: '#000000',
  },
}
SCSS
$custom: #7a229e;
$custom-light: #a568bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7a229e",
  "rgb": {
    "r": 122,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 282.581,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.45133,
    "c": 0.19196,
    "h": 313.6
  },
  "luminance": 0.0775
}

Semantic roles & 50–950 ramp

primary
#7A229E
secondary
#78C15B
accent
#E84071
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A229E

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

Preview Lab → · Contrast checker → · Palette generator →

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