#7A2A8B#7A2A8B

#7A2A8B is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.6% C 0.165 H 320.1°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#7A2A8B
RGBrgb(122, 42, 139)
HSLhsl(289, 54%, 35%)
HSVhsv(289, 70%, 55%)
CMYKcmyk(12.2%, 69.8%, 0%, 45.5%)
CIE-LABlab(33.26, 48.63, -37.84)
CIE-LCHlch(33.26, 61.62, 322.11°)
OKLaboklab(44.58% 0.1266 -0.1058)
OKLCHoklch(44.58% 0.165 320.1)
XYZxyz(13.5136, 7.6582, 25.1875)
Luminance0.0766 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2A8B #3B8B2A
analogous
#4A2A8B #7A2A8B #8B2A6B
triadic
#7A2A8B #8B7A2A #2A8B7A
tetradic
#7A2A8B #8B4A2A #3B8B2A #2A6B8B
square
#7A2A8B #8B4A2A #3B8B2A #2A6B8B
split-complementary
#7A2A8B #6B8B2A #2A8B4A
monochromatic
#270E2D #511C5C #7A2A8B #A338BA #BC60CF

Accessibility & contrast

On white

8.30
#7A2A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#7A2A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2A8B
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2A8B#FFFFFF#000000##FFFFFF
##7A2A8B1.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04498E
Deuteranopia (green-blind)
#335189
Tritanopia (blue-blind)
#7B3B57
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7a2a8b;
/* rgb */ color: rgb(122, 42, 139);
/* oklch */ color: oklch(44.6% 0.165 320.1);
Tailwind
colors: {
  custom: {
    50: '#a46bad',
    500: '#7a2a8b',
    950: '#000000',
  },
}
SCSS
$custom: #7a2a8b;
$custom-light: #a46bad;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2a8b",
  "rgb": {
    "r": 122,
    "g": 42,
    "b": 139
  },
  "hsl": {
    "h": 289.485,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.44582,
    "c": 0.16502,
    "h": 320.1
  },
  "luminance": 0.07658
}

Semantic roles & 50–950 ramp

primary
#7A2A8B
secondary
#6CB55C
accent
#DD4B64
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #7A2A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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