#7A2D9A#7A2D9A

#7A2D9A is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.9% C 0.176 H 314.1°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#7A2D9A
RGBrgb(122, 45, 154)
HSLhsl(282, 55%, 39%)
HSVhsv(282, 71%, 60%)
CMYKcmyk(20.8%, 70.8%, 0%, 39.6%)
CIE-LABlab(34.70, 50.45, -44.72)
CIE-LCHlch(34.70, 67.42, 318.44°)
OKLaboklab(45.92% 0.1222 -0.126)
OKLCHoklch(45.92% 0.176 314.1)
XYZxyz(14.7962, 8.3479, 31.3975)
Luminance0.0835 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2D9A #4D9A2D
analogous
#442D9A #7A2D9A #9A2D84
triadic
#7A2D9A #9A7A2D #2D9A7A
tetradic
#7A2D9A #9A442D #4D9A2D #2D849A
square
#7A2D9A #9A442D #4D9A2D #2D849A
split-complementary
#7A2D9A #849A2D #2D9A44
monochromatic
#2F113B #541F6B #7A2D9A #9E3EC7 #B66DD4

Accessibility & contrast

On white

7.87
#7A2D9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#7A2D9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2D9A
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2D9A#FFFFFF#000000##FFFFFF
##7A2D9A1.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9D
Deuteranopia (green-blind)
#275398
Tritanopia (blue-blind)
#774360
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7a2d9a;
/* rgb */ color: rgb(122, 45, 154);
/* oklch */ color: oklch(45.9% 0.176 314.1);
Tailwind
colors: {
  custom: {
    50: '#a46db8',
    500: '#7a2d9a',
    950: '#000000',
  },
}
SCSS
$custom: #7a2d9a;
$custom-light: #a46db8;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2d9a",
  "rgb": {
    "r": 122,
    "g": 45,
    "b": 154
  },
  "hsl": {
    "h": 282.385,
    "s": 54.774,
    "l": 39.02
  },
  "oklch": {
    "l": 0.45923,
    "c": 0.17557,
    "h": 314.1
  },
  "luminance": 0.08347
}

Semantic roles & 50–950 ramp

primary
#7A2D9A
secondary
#80BB67
accent
#DE4A75
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7A2D9A

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

Preview Lab → · Contrast checker → · Palette generator →

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