#7A2F84#7A2F84

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

Color values

HEX#7A2F84
RGBrgb(122, 47, 132)
HSLhsl(293, 47%, 35%)
HSVhsv(293, 64%, 52%)
CMYKcmyk(7.6%, 64.4%, 0%, 48.2%)
CIE-LABlab(33.64, 45.00, -32.90)
CIE-LCHlch(33.64, 55.75, 323.83°)
OKLaboklab(44.72% 0.1206 -0.0915)
OKLCHoklch(44.72% 0.151 322.8)
XYZxyz(13.2070, 7.8373, 22.6424)
Luminance0.0784 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2F84 #39842F
analogous
#4F2F84 #7A2F84 #842F64
triadic
#7A2F84 #847A2F #2F847A
tetradic
#7A2F84 #844F2F #39842F #2F6484
square
#7A2F84 #844F2F #39842F #2F6484
split-complementary
#7A2F84 #64842F #2F844F
monochromatic
#270F2A #501F57 #7A2F84 #A43FB1 #BD65C8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7A2F84#FFFFFF#000000##FFFFFF
##7A2F841.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)
#1D4987
Deuteranopia (green-blind)
#3B5282
Tritanopia (blue-blind)
#7C3C55
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7a2f84;
/* rgb */ color: rgb(122, 47, 132);
/* oklch */ color: oklch(44.7% 0.151 322.8);
Tailwind
colors: {
  custom: {
    50: '#a36da8',
    500: '#7a2f84',
    950: '#000000',
  },
}
SCSS
$custom: #7a2f84;
$custom-light: #a36da8;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2f84",
  "rgb": {
    "r": 122,
    "g": 47,
    "b": 132
  },
  "hsl": {
    "h": 292.941,
    "s": 47.486,
    "l": 35.098
  },
  "oklch": {
    "l": 0.44721,
    "c": 0.15135,
    "h": 322.8
  },
  "luminance": 0.07837
}

Semantic roles & 50–950 ramp

primary
#7A2F84
secondary
#69AF60
accent
#D75161
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#0F070F
muted
#7F7A7F

Preview Lab

Preview with #7A2F84

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

Preview Lab → · Contrast checker → · Palette generator →

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