#7A2A87#7A2A87

#7A2A87 is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.3% C 0.161 H 321.8°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#7A2A87
RGBrgb(122, 42, 135)
HSLhsl(292, 53%, 35%)
HSVhsv(292, 69%, 53%)
CMYKcmyk(9.6%, 68.9%, 0%, 47.1%)
CIE-LABlab(33.01, 47.84, -35.76)
CIE-LCHlch(33.01, 59.73, 323.22°)
OKLaboklab(44.33% 0.1267 -0.0998)
OKLCHoklch(44.33% 0.161 321.8)
XYZxyz(13.2267, 7.5435, 23.6763)
Luminance0.0754 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2A87 #37872A
analogous
#4C2A87 #7A2A87 #872A66
triadic
#7A2A87 #877A2A #2A877A
tetradic
#7A2A87 #874C2A #37872A #2A6687
square
#7A2A87 #874C2A #37872A #2A6687
split-complementary
#7A2A87 #66872A #2A874C
monochromatic
#260D2A #501B58 #7A2A87 #A439B6 #BE5ECD

Accessibility & contrast

On white

8.37
#7A2A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#7A2A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2A87
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2A87#FFFFFF#000000##FFFFFF
##7A2A871.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E488A
Deuteranopia (green-blind)
#355185
Tritanopia (blue-blind)
#7B3A55
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7a2a87;
/* rgb */ color: rgb(122, 42, 135);
/* oklch */ color: oklch(44.3% 0.161 321.8);
Tailwind
colors: {
  custom: {
    50: '#a36aaa',
    500: '#7a2a87',
    950: '#000000',
  },
}
SCSS
$custom: #7a2a87;
$custom-light: #a36aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2a87",
  "rgb": {
    "r": 122,
    "g": 42,
    "b": 135
  },
  "hsl": {
    "h": 291.613,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.44325,
    "c": 0.16127,
    "h": 321.8
  },
  "luminance": 0.07543
}

Semantic roles & 50–950 ramp

primary
#7A2A87
secondary
#66B35A
accent
#DC4C60
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #7A2A87

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

Preview Lab → · Contrast checker → · Palette generator →

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