#7A2D99#7A2D99

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

Color values

HEX#7A2D99
RGBrgb(122, 45, 153)
HSLhsl(283, 55%, 39%)
HSVhsv(283, 71%, 60%)
CMYKcmyk(20.3%, 70.6%, 0%, 40%)
CIE-LABlab(34.63, 50.24, -44.22)
CIE-LCHlch(34.63, 66.93, 318.64°)
OKLaboklab(45.85% 0.1223 -0.1246)
OKLCHoklch(45.85% 0.175 314.5)
XYZxyz(14.7132, 8.3148, 30.9607)
Luminance0.0831 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2D99 #4C992D
analogous
#442D99 #7A2D99 #992D82
triadic
#7A2D99 #997A2D #2D997A
tetradic
#7A2D99 #99442D #4C992D #2D8299
square
#7A2D99 #99442D #4C992D #2D8299
split-complementary
#7A2D99 #82992D #2D9944
monochromatic
#2F113A #541F6A #7A2D99 #9F3DC6 #B66CD4

Accessibility & contrast

On white

7.89
#7A2D99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#7A2D99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2D99
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2D99#FFFFFF#000000##FFFFFF
##7A2D991.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9C
Deuteranopia (green-blind)
#285397
Tritanopia (blue-blind)
#774360
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7a2d99;
/* rgb */ color: rgb(122, 45, 153);
/* oklch */ color: oklch(45.9% 0.175 314.5);
Tailwind
colors: {
  custom: {
    50: '#a46db8',
    500: '#7a2d99',
    950: '#000000',
  },
}
SCSS
$custom: #7a2d99;
$custom-light: #a46db8;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2d99",
  "rgb": {
    "r": 122,
    "g": 45,
    "b": 153
  },
  "hsl": {
    "h": 282.778,
    "s": 54.545,
    "l": 38.824
  },
  "oklch": {
    "l": 0.45853,
    "c": 0.17458,
    "h": 314.5
  },
  "luminance": 0.08314
}

Semantic roles & 50–950 ramp

primary
#7A2D99
secondary
#7FBB67
accent
#DE4A74
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7A2D99

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

Preview Lab → · Contrast checker → · Palette generator →

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