#7A2A90#7A2A90

#7A2A90 is a dark, vivid purple. Relative luminance 0.078; OKLCH L 44.9% C 0.170 H 318.1°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#7A2A90
RGBrgb(122, 42, 144)
HSLhsl(287, 55%, 36%)
HSVhsv(287, 71%, 56%)
CMYKcmyk(15.3%, 70.8%, 0%, 43.5%)
CIE-LABlab(33.58, 49.64, -40.41)
CIE-LCHlch(33.58, 64.01, 320.85°)
OKLaboklab(44.91% 0.1263 -0.1134)
OKLCHoklch(44.91% 0.17 318.1)
XYZxyz(13.8873, 7.8077, 27.1557)
Luminance0.0781 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2A90 #40902A
analogous
#472A90 #7A2A90 #902A73
triadic
#7A2A90 #907A2A #2A907A
tetradic
#7A2A90 #90472A #40902A #2A7390
square
#7A2A90 #90472A #40902A #2A7390
split-complementary
#7A2A90 #73902A #2A9047
monochromatic
#2A0E31 #521C61 #7A2A90 #A238BF #BA63D1

Accessibility & contrast

On white

8.20
#7A2A90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#7A2A90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2A90
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2A90#FFFFFF#000000##FFFFFF
##7A2A901.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7a2a90;
/* rgb */ color: rgb(122, 42, 144);
/* oklch */ color: oklch(44.9% 0.170 318.1);
Tailwind
colors: {
  custom: {
    50: '#a46bb1',
    500: '#7a2a90',
    950: '#000000',
  },
}
SCSS
$custom: #7a2a90;
$custom-light: #a46bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2a90",
  "rgb": {
    "r": 122,
    "g": 42,
    "b": 144
  },
  "hsl": {
    "h": 287.059,
    "s": 54.839,
    "l": 36.471
  },
  "oklch": {
    "l": 0.44912,
    "c": 0.16974,
    "h": 318.1
  },
  "luminance": 0.07807
}

Semantic roles & 50–950 ramp

primary
#7A2A90
secondary
#72B75E
accent
#DE4A6A
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7A2A90

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

Preview Lab → · Contrast checker → · Palette generator →

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