#7A2B8A#7A2B8A

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

Color values

HEX#7A2B8A
RGBrgb(122, 43, 138)
HSLhsl(290, 52%, 35%)
HSVhsv(290, 69%, 54%)
CMYKcmyk(11.6%, 68.8%, 0%, 45.9%)
CIE-LABlab(33.35, 48.00, -37.08)
CIE-LCHlch(33.35, 60.65, 322.32°)
OKLaboklab(44.63% 0.1255 -0.1036)
OKLCHoklch(44.63% 0.163 320.5)
XYZxyz(13.4768, 7.7010, 24.8164)
Luminance0.0770 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2B8A #3B8A2B
analogous
#4B2B8A #7A2B8A #8A2B6A
triadic
#7A2B8A #8A7A2B #2B8A7A
tetradic
#7A2B8A #8A4B2B #3B8A2B #2B6A8A
square
#7A2B8A #8A4B2B #3B8A2B #2B6A8A
split-complementary
#7A2B8A #6A8A2B #2B8A4B
monochromatic
#270E2D #511C5B #7A2B8A #A33AB9 #BC61CE

Accessibility & contrast

On white

8.27
#7A2B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#7A2B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2B8A
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2B8A#FFFFFF#000000##FFFFFF
##7A2B8A1.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A498D
Deuteranopia (green-blind)
#345188
Tritanopia (blue-blind)
#7B3C57
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7a2b8a;
/* rgb */ color: rgb(122, 43, 138);
/* oklch */ color: oklch(44.6% 0.163 320.5);
Tailwind
colors: {
  custom: {
    50: '#a36bad',
    500: '#7a2b8a',
    950: '#000000',
  },
}
SCSS
$custom: #7a2b8a;
$custom-light: #a36bad;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2b8a",
  "rgb": {
    "r": 122,
    "g": 43,
    "b": 138
  },
  "hsl": {
    "h": 289.895,
    "s": 52.486,
    "l": 35.49
  },
  "oklch": {
    "l": 0.44628,
    "c": 0.16273,
    "h": 320.5
  },
  "luminance": 0.077
}

Semantic roles & 50–950 ramp

primary
#7A2B8A
secondary
#6CB45D
accent
#DC4C64
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #7A2B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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