#7A229B#7A229B

#7A229B is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.9% C 0.189 H 314.7°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#7A229B
RGBrgb(122, 34, 155)
HSLhsl(284, 64%, 37%)
HSVhsv(284, 78%, 61%)
CMYKcmyk(21.3%, 78.1%, 0%, 39.2%)
CIE-LABlab(33.24, 55.01, -47.68)
CIE-LCHlch(33.24, 72.79, 319.08°)
OKLaboklab(44.91% 0.133 -0.1346)
OKLCHoklch(44.91% 0.189 314.7)
XYZxyz(14.5135, 7.6487, 31.7158)
Luminance0.0765 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A229B #439B22
analogous
#3D229B #7A229B #9B2280
triadic
#7A229B #9B7A22 #229B7A
tetradic
#7A229B #9B3D22 #439B22 #22809B
square
#7A229B #9B3D22 #439B22 #22809B
split-complementary
#7A229B #809B22 #229B3D
monochromatic
#2B0C37 #521769 #7A229B #A22DCD #B95CDB

Accessibility & contrast

On white

8.30
#7A229B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#7A229B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A229B
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A229B#FFFFFF#000000##FFFFFF
##7A229B1.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499E
Deuteranopia (green-blind)
#1A5098
Tritanopia (blue-blind)
#773E5E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7a229b;
/* rgb */ color: rgb(122, 34, 155);
/* oklch */ color: oklch(44.9% 0.189 314.7);
Tailwind
colors: {
  custom: {
    50: '#a568b9',
    500: '#7a229b',
    950: '#000000',
  },
}
SCSS
$custom: #7a229b;
$custom-light: #a568b9;
$custom-dark: #000000;
JSON
{
  "hex": "#7a229b",
  "rgb": {
    "r": 122,
    "g": 34,
    "b": 155
  },
  "hsl": {
    "h": 283.636,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.44911,
    "c": 0.18925,
    "h": 314.7
  },
  "luminance": 0.07648
}

Semantic roles & 50–950 ramp

primary
#7A229B
secondary
#75C059
accent
#E7416E
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7A229B

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

Preview Lab → · Contrast checker → · Palette generator →

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