#7A2D8B#7A2D8B

#7A2D8B is a dark, vivid purple. Relative luminance 0.079; OKLCH L 44.9% C 0.161 H 319.9°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#7A2D8B
RGBrgb(122, 45, 139)
HSLhsl(289, 51%, 36%)
HSVhsv(289, 68%, 55%)
CMYKcmyk(12.2%, 67.6%, 0%, 45.5%)
CIE-LABlab(33.73, 47.32, -37.09)
CIE-LCHlch(33.73, 60.13, 321.91°)
OKLaboklab(44.92% 0.1231 -0.1037)
OKLCHoklch(44.92% 0.161 319.9)
XYZxyz(13.6240, 7.8791, 25.2243)
Luminance0.0788 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2D8B #3E8B2D
analogous
#4B2D8B #7A2D8B #8B2D6D
triadic
#7A2D8B #8B7A2D #2D8B7A
tetradic
#7A2D8B #8B4B2D #3E8B2D #2D6D8B
square
#7A2D8B #8B4B2D #3E8B2D #2D6D8B
split-complementary
#7A2D8B #6D8B2D #2D8B4B
monochromatic
#290F2F #511E5D #7A2D8B #A33CB9 #BA65CD

Accessibility & contrast

On white

8.15
#7A2D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7A2D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2D8B
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2D8B#FFFFFF#000000##FFFFFF
##7A2D8B1.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E4A8E
Deuteranopia (green-blind)
#355289
Tritanopia (blue-blind)
#7A3D58
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7a2d8b;
/* rgb */ color: rgb(122, 45, 139);
/* oklch */ color: oklch(44.9% 0.161 319.9);
Tailwind
colors: {
  custom: {
    50: '#a36cad',
    500: '#7a2d8b',
    950: '#000000',
  },
}
SCSS
$custom: #7a2d8b;
$custom-light: #a36cad;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2d8b",
  "rgb": {
    "r": 122,
    "g": 45,
    "b": 139
  },
  "hsl": {
    "h": 289.149,
    "s": 51.087,
    "l": 36.078
  },
  "oklch": {
    "l": 0.44919,
    "c": 0.16094,
    "h": 319.9
  },
  "luminance": 0.07878
}

Semantic roles & 50–950 ramp

primary
#7A2D8B
secondary
#6FB460
accent
#DB4D67
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #7A2D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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