#7A2D8D#7A2D8D

#7A2D8D is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.0% C 0.163 H 319.1°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#7A2D8D
RGBrgb(122, 45, 141)
HSLhsl(288, 52%, 36%)
HSVhsv(288, 68%, 55%)
CMYKcmyk(13.5%, 68.1%, 0%, 44.7%)
CIE-LABlab(33.85, 47.73, -38.13)
CIE-LCHlch(33.85, 61.09, 321.38°)
OKLaboklab(45.05% 0.1231 -0.1067)
OKLCHoklch(45.05% 0.163 319.1)
XYZxyz(13.7715, 7.9381, 26.0009)
Luminance0.0794 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2D8D #408D2D
analogous
#4A2D8D #7A2D8D #8D2D70
triadic
#7A2D8D #8D7A2D #2D8D7A
tetradic
#7A2D8D #8D4A2D #408D2D #2D708D
square
#7A2D8D #8D4A2D #408D2D #2D708D
split-complementary
#7A2D8D #708D2D #2D8D4A
monochromatic
#2A0F30 #521E5F #7A2D8D #A23CBB #BA66CE

Accessibility & contrast

On white

8.12
#7A2D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#7A2D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2D8D
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2D8D#FFFFFF#000000##FFFFFF
##7A2D8D1.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#094A90
Deuteranopia (green-blind)
#33528B
Tritanopia (blue-blind)
#7A3E59
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7a2d8d;
/* rgb */ color: rgb(122, 45, 141);
/* oklch */ color: oklch(45.0% 0.163 319.1);
Tailwind
colors: {
  custom: {
    50: '#a36caf',
    500: '#7a2d8d',
    950: '#000000',
  },
}
SCSS
$custom: #7a2d8d;
$custom-light: #a36caf;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2d8d",
  "rgb": {
    "r": 122,
    "g": 45,
    "b": 141
  },
  "hsl": {
    "h": 288.125,
    "s": 51.613,
    "l": 36.471
  },
  "oklch": {
    "l": 0.45048,
    "c": 0.16287,
    "h": 319.1
  },
  "luminance": 0.07937
}

Semantic roles & 50–950 ramp

primary
#7A2D8D
secondary
#72B561
accent
#DB4D69
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #7A2D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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