#7A2D97#7A2D97

#7A2D97 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.7% C 0.173 H 315.2°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#7A2D97
RGBrgb(122, 45, 151)
HSLhsl(284, 54%, 38%)
HSVhsv(284, 70%, 59%)
CMYKcmyk(19.2%, 70.2%, 0%, 40.8%)
CIE-LABlab(34.50, 49.81, -43.22)
CIE-LCHlch(34.50, 65.95, 319.05°)
OKLaboklab(45.72% 0.1225 -0.1216)
OKLCHoklch(45.72% 0.173 315.2)
XYZxyz(14.5494, 8.2492, 30.0980)
Luminance0.0825 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2D97 #4A972D
analogous
#452D97 #7A2D97 #972D7F
triadic
#7A2D97 #977A2D #2D977A
tetradic
#7A2D97 #97452D #4A972D #2D7F97
square
#7A2D97 #97452D #4A972D #2D7F97
split-complementary
#7A2D97 #7F972D #2D9745
monochromatic
#2E1139 #541F68 #7A2D97 #A03CC5 #B76BD3

Accessibility & contrast

On white

7.93
#7A2D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#7A2D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2D97
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2D97#FFFFFF#000000##FFFFFF
##7A2D971.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9A
Deuteranopia (green-blind)
#2A5395
Tritanopia (blue-blind)
#78425E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7a2d97;
/* rgb */ color: rgb(122, 45, 151);
/* oklch */ color: oklch(45.7% 0.173 315.2);
Tailwind
colors: {
  custom: {
    50: '#a46db6',
    500: '#7a2d97',
    950: '#000000',
  },
}
SCSS
$custom: #7a2d97;
$custom-light: #a46db6;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2d97",
  "rgb": {
    "r": 122,
    "g": 45,
    "b": 151
  },
  "hsl": {
    "h": 283.585,
    "s": 54.082,
    "l": 38.431
  },
  "oklch": {
    "l": 0.45715,
    "c": 0.17262,
    "h": 315.2
  },
  "luminance": 0.08249
}

Semantic roles & 50–950 ramp

primary
#7A2D97
secondary
#7DBA66
accent
#DD4A73
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7A2D97

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

Preview Lab → · Contrast checker → · Palette generator →

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