#7A229A#7A229A

#7A229A is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.8% C 0.188 H 315.0°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#7A229A
RGBrgb(122, 34, 154)
HSLhsl(284, 64%, 37%)
HSVhsv(284, 78%, 60%)
CMYKcmyk(20.8%, 77.9%, 0%, 39.6%)
CIE-LABlab(33.17, 54.80, -47.19)
CIE-LCHlch(33.17, 72.32, 319.27°)
OKLaboklab(44.84% 0.1332 -0.1332)
OKLCHoklch(44.84% 0.188 315)
XYZxyz(14.4298, 7.6153, 31.2754)
Luminance0.0761 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A229A #429A22
analogous
#3E229A #7A229A #9A227E
triadic
#7A229A #9A7A22 #229A7A
tetradic
#7A229A #9A3E22 #429A22 #227E9A
square
#7A229A #9A3E22 #429A22 #227E9A
split-complementary
#7A229A #7E9A22 #229A3E
monochromatic
#2B0C36 #521768 #7A229A #A22DCC #B95BDB

Accessibility & contrast

On white

8.32
#7A229A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#7A229A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A229A
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A229A#FFFFFF#000000##FFFFFF
##7A229A1.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499D
Deuteranopia (green-blind)
#1C5097
Tritanopia (blue-blind)
#773D5D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7a229a;
/* rgb */ color: rgb(122, 34, 154);
/* oklch */ color: oklch(44.8% 0.188 315.0);
Tailwind
colors: {
  custom: {
    50: '#a568b8',
    500: '#7a229a',
    950: '#000000',
  },
}
SCSS
$custom: #7a229a;
$custom-light: #a568b8;
$custom-dark: #000000;
JSON
{
  "hex": "#7a229a",
  "rgb": {
    "r": 122,
    "g": 34,
    "b": 154
  },
  "hsl": {
    "h": 284,
    "s": 63.83,
    "l": 36.863
  },
  "oklch": {
    "l": 0.44837,
    "c": 0.18833,
    "h": 315
  },
  "luminance": 0.07615
}

Semantic roles & 50–950 ramp

primary
#7A229A
secondary
#74BF58
accent
#E7416D
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7A229A

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

Preview Lab → · Contrast checker → · Palette generator →

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