#7A229D#7A229D

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

Color values

HEX#7A229D
RGBrgb(122, 34, 157)
HSLhsl(283, 64%, 37%)
HSVhsv(283, 78%, 62%)
CMYKcmyk(22.3%, 78.3%, 0%, 38.4%)
CIE-LABlab(33.39, 55.42, -48.66)
CIE-LCHlch(33.39, 73.75, 318.71°)
OKLaboklab(45.06% 0.1327 -0.1375)
OKLCHoklch(45.06% 0.191 314)
XYZxyz(14.6828, 7.7165, 32.6077)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A229D #459D22
analogous
#3D229D #7A229D #9D2282
triadic
#7A229D #9D7A22 #229D7A
tetradic
#7A229D #9D3D22 #459D22 #22829D
square
#7A229D #9D3D22 #459D22 #22829D
split-complementary
#7A229D #829D22 #229D3D
monochromatic
#2C0C38 #53176B #7A229D #A12DCF #B85DDC

Accessibility & contrast

On white

8.26
#7A229D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#7A229D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A229D
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A229D#FFFFFF#000000##FFFFFF
##7A229D1.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA0
Deuteranopia (green-blind)
#17519A
Tritanopia (blue-blind)
#773F5F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7a229d;
/* rgb */ color: rgb(122, 34, 157);
/* oklch */ color: oklch(45.1% 0.191 314.0);
Tailwind
colors: {
  custom: {
    50: '#a568bb',
    500: '#7a229d',
    950: '#000000',
  },
}
SCSS
$custom: #7a229d;
$custom-light: #a568bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7a229d",
  "rgb": {
    "r": 122,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 282.927,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.45059,
    "c": 0.19106,
    "h": 314
  },
  "luminance": 0.07716
}

Semantic roles & 50–950 ramp

primary
#7A229D
secondary
#77C15A
accent
#E74070
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A229D

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

Preview Lab → · Contrast checker → · Palette generator →

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