#7A2A91#7A2A91

#7A2A91 is a dark, vivid purple. Relative luminance 0.078; OKLCH L 45.0% C 0.171 H 317.7°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#7A2A91
RGBrgb(122, 42, 145)
HSLhsl(287, 55%, 37%)
HSVhsv(287, 71%, 57%)
CMYKcmyk(15.9%, 71%, 0%, 43.1%)
CIE-LABlab(33.64, 49.85, -40.92)
CIE-LCHlch(33.64, 64.49, 320.62°)
OKLaboklab(44.98% 0.1263 -0.1148)
OKLCHoklch(44.98% 0.171 317.7)
XYZxyz(13.9641, 7.8384, 27.5600)
Luminance0.0784 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2A91 #41912A
analogous
#472A91 #7A2A91 #912A75
triadic
#7A2A91 #917A2A #2A917A
tetradic
#7A2A91 #91472A #41912A #2A7591
square
#7A2A91 #91472A #41912A #2A7591
split-complementary
#7A2A91 #75912A #2A9147
monochromatic
#2A0F32 #521C62 #7A2A91 #A238C0 #B963D2

Accessibility & contrast

On white

8.18
#7A2A91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7A2A91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2A91
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2A91#FFFFFF#000000##FFFFFF
##7A2A911.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A94
Deuteranopia (green-blind)
#2E528F
Tritanopia (blue-blind)
#793E5A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7a2a91;
/* rgb */ color: rgb(122, 42, 145);
/* oklch */ color: oklch(45.0% 0.171 317.7);
Tailwind
colors: {
  custom: {
    50: '#a46bb2',
    500: '#7a2a91',
    950: '#000000',
  },
}
SCSS
$custom: #7a2a91;
$custom-light: #a46bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2a91",
  "rgb": {
    "r": 122,
    "g": 42,
    "b": 145
  },
  "hsl": {
    "h": 286.602,
    "s": 55.08,
    "l": 36.667
  },
  "oklch": {
    "l": 0.4498,
    "c": 0.17069,
    "h": 317.7
  },
  "luminance": 0.07838
}

Semantic roles & 50–950 ramp

primary
#7A2A91
secondary
#73B85F
accent
#DE496B
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7A2A91

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

Preview Lab → · Contrast checker → · Palette generator →

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