#7A229C#7A229C

#7A229C is a dark, vivid purple. Relative luminance 0.077; OKLCH L 45.0% C 0.190 H 314.3°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#7A229C
RGBrgb(122, 34, 156)
HSLhsl(283, 64%, 37%)
HSVhsv(283, 78%, 61%)
CMYKcmyk(21.8%, 78.2%, 0%, 38.8%)
CIE-LABlab(33.31, 55.21, -48.17)
CIE-LCHlch(33.31, 73.27, 318.90°)
OKLaboklab(44.99% 0.1328 -0.1361)
OKLCHoklch(44.99% 0.19 314.3)
XYZxyz(14.5978, 7.6824, 32.1599)
Luminance0.0768 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A229C #449C22
analogous
#3D229C #7A229C #9C2281
triadic
#7A229C #9C7A22 #229C7A
tetradic
#7A229C #9C3D22 #449C22 #22819C
square
#7A229C #9C3D22 #449C22 #22819C
split-complementary
#7A229C #819C22 #229C3D
monochromatic
#2B0C38 #53176A #7A229C #A12DCE #B85DDC

Accessibility & contrast

On white

8.28
#7A229C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A229C
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A229C#FFFFFF#000000##FFFFFF
##7A229C1.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9F
Deuteranopia (green-blind)
#195099
Tritanopia (blue-blind)
#773E5E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7a229c;
/* rgb */ color: rgb(122, 34, 156);
/* oklch */ color: oklch(45.0% 0.190 314.3);
Tailwind
colors: {
  custom: {
    50: '#a568ba',
    500: '#7a229c',
    950: '#000000',
  },
}
SCSS
$custom: #7a229c;
$custom-light: #a568ba;
$custom-dark: #000000;
JSON
{
  "hex": "#7a229c",
  "rgb": {
    "r": 122,
    "g": 34,
    "b": 156
  },
  "hsl": {
    "h": 283.279,
    "s": 64.211,
    "l": 37.255
  },
  "oklch": {
    "l": 0.44985,
    "c": 0.19015,
    "h": 314.3
  },
  "luminance": 0.07682
}

Semantic roles & 50–950 ramp

primary
#7A229C
secondary
#76C05A
accent
#E7416F
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A229C

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

Preview Lab → · Contrast checker → · Palette generator →

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