#7A2E8B#7A2E8B

#7A2E8B is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.0% C 0.160 H 319.8°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#7A2E8B
RGBrgb(122, 46, 139)
HSLhsl(289, 50%, 36%)
HSVhsv(289, 67%, 55%)
CMYKcmyk(12.2%, 66.9%, 0%, 45.5%)
CIE-LABlab(33.89, 46.87, -36.83)
CIE-LCHlch(33.89, 59.61, 321.84°)
OKLaboklab(45.04% 0.1219 -0.1029)
OKLCHoklch(45.04% 0.16 319.8)
XYZxyz(13.6627, 7.9563, 25.2371)
Luminance0.0796 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2E8B #3F8B2E
analogous
#4C2E8B #7A2E8B #8B2E6E
triadic
#7A2E8B #8B7A2E #2E8B7A
tetradic
#7A2E8B #8B4C2E #3F8B2E #2E6E8B
square
#7A2E8B #8B4C2E #3F8B2E #2E6E8B
split-complementary
#7A2E8B #6E8B2E #2E8B4C
monochromatic
#29102F #521F5D #7A2E8B #A23DB9 #BA67CD

Accessibility & contrast

On white

8.10
#7A2E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A2E8B
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2E8B#FFFFFF#000000##FFFFFF
##7A2E8B1.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114A8E
Deuteranopia (green-blind)
#355289
Tritanopia (blue-blind)
#7A3E58
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7a2e8b;
/* rgb */ color: rgb(122, 46, 139);
/* oklch */ color: oklch(45.0% 0.160 319.8);
Tailwind
colors: {
  custom: {
    50: '#a36dad',
    500: '#7a2e8b',
    950: '#000000',
  },
}
SCSS
$custom: #7a2e8b;
$custom-light: #a36dad;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2e8b",
  "rgb": {
    "r": 122,
    "g": 46,
    "b": 139
  },
  "hsl": {
    "h": 289.032,
    "s": 50.27,
    "l": 36.275
  },
  "oklch": {
    "l": 0.45036,
    "c": 0.15955,
    "h": 319.8
  },
  "luminance": 0.07956
}

Semantic roles & 50–950 ramp

primary
#7A2E8B
secondary
#70B361
accent
#DA4E68
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #7A2E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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