#7A229F#7A229F

#7A229F is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.2% C 0.193 H 313.3°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#7A229F
RGBrgb(122, 34, 159)
HSLhsl(282, 65%, 38%)
HSVhsv(282, 79%, 62%)
CMYKcmyk(23.3%, 78.6%, 0%, 37.6%)
CIE-LABlab(33.53, 55.83, -49.64)
CIE-LCHlch(33.53, 74.70, 318.36°)
OKLaboklab(45.21% 0.1323 -0.1404)
OKLCHoklch(45.21% 0.193 313.3)
XYZxyz(14.8550, 7.7853, 33.5144)
Luminance0.0779 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A229F #479F22
analogous
#3B229F #7A229F #9F2285
triadic
#7A229F #9F7A22 #229F7A
tetradic
#7A229F #9F3B22 #479F22 #22859F
square
#7A229F #9F3B22 #479F22 #22859F
split-complementary
#7A229F #859F22 #229F3B
monochromatic
#2D0C3A #53176D #7A229F #A12DD1 #B75FDD

Accessibility & contrast

On white

8.21
#7A229F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#7A229F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A229F
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A229F#FFFFFF#000000##FFFFFF
##7A229F1.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA2
Deuteranopia (green-blind)
#12519C
Tritanopia (blue-blind)
#764060
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7a229f;
/* rgb */ color: rgb(122, 34, 159);
/* oklch */ color: oklch(45.2% 0.193 313.3);
Tailwind
colors: {
  custom: {
    50: '#a568bc',
    500: '#7a229f',
    950: '#000000',
  },
}
SCSS
$custom: #7a229f;
$custom-light: #a568bc;
$custom-dark: #000000;
JSON
{
  "hex": "#7a229f",
  "rgb": {
    "r": 122,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 282.24,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.45208,
    "c": 0.19288,
    "h": 313.3
  },
  "luminance": 0.07785
}

Semantic roles & 50–950 ramp

primary
#7A229F
secondary
#7AC15B
accent
#E84072
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A229F

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

Preview Lab → · Contrast checker → · Palette generator →

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