#7A2291#7A2291

#7A2291 is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.2% C 0.180 H 318.3°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#7A2291
RGBrgb(122, 34, 145)
HSLhsl(288, 62%, 35%)
HSVhsv(288, 77%, 57%)
CMYKcmyk(15.9%, 76.6%, 0%, 43.1%)
CIE-LABlab(32.54, 52.99, -42.69)
CIE-LCHlch(32.54, 68.05, 321.14°)
OKLaboklab(44.19% 0.1344 -0.12)
OKLCHoklch(44.19% 0.18 318.3)
XYZxyz(13.7082, 7.3266, 27.4747)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2291 #399122
analogous
#432291 #7A2291 #912270
triadic
#7A2291 #917A22 #22917A
tetradic
#7A2291 #914322 #399122 #227091
square
#7A2291 #914322 #399122 #227091
split-complementary
#7A2291 #709122 #229143
monochromatic
#270B2E #50165F #7A2291 #A42EC3 #BD56D7

Accessibility & contrast

On white

8.52
#7A2291 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#7A2291 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2291
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2291#FFFFFF#000000##FFFFFF
##7A22911.008.522.478.52
#FFFFFF8.521.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004794
Deuteranopia (green-blind)
#274F8F
Tritanopia (blue-blind)
#793958
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7a2291;
/* rgb */ color: rgb(122, 34, 145);
/* oklch */ color: oklch(44.2% 0.180 318.3);
Tailwind
colors: {
  custom: {
    50: '#a467b2',
    500: '#7a2291',
    950: '#000000',
  },
}
SCSS
$custom: #7a2291;
$custom-light: #a467b2;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2291",
  "rgb": {
    "r": 122,
    "g": 34,
    "b": 145
  },
  "hsl": {
    "h": 287.568,
    "s": 62.011,
    "l": 35.098
  },
  "oklch": {
    "l": 0.44193,
    "c": 0.18021,
    "h": 318.3
  },
  "luminance": 0.07326
}

Semantic roles & 50–950 ramp

primary
#7A2291
secondary
#69BB53
accent
#E54364
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7A2291

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

Preview Lab → · Contrast checker → · Palette generator →

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