#7A2B8D#7A2B8D

#7A2B8D is a dark, vivid purple. Relative luminance 0.078; OKLCH L 44.8% C 0.166 H 319.2°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#7A2B8D
RGBrgb(122, 43, 141)
HSLhsl(288, 53%, 36%)
HSVhsv(288, 70%, 55%)
CMYKcmyk(13.5%, 69.5%, 0%, 44.7%)
CIE-LABlab(33.54, 48.61, -38.63)
CIE-LCHlch(33.54, 62.09, 321.52°)
OKLaboklab(44.82% 0.1254 -0.1082)
OKLCHoklch(44.82% 0.166 319.2)
XYZxyz(13.6970, 7.7891, 25.9761)
Luminance0.0779 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2B8D #3E8D2B
analogous
#492B8D #7A2B8D #8D2B6F
triadic
#7A2B8D #8D7A2B #2B8D7A
tetradic
#7A2B8D #8D492B #3E8D2B #2B6F8D
square
#7A2B8D #8D492B #3E8D2B #2B6F8D
split-complementary
#7A2B8D #6F8D2B #2B8D49
monochromatic
#290E2F #511D5E #7A2B8D #A339BC #BA63CF

Accessibility & contrast

On white

8.21
#7A2B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#7A2B8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2B8D
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2B8D#FFFFFF#000000##FFFFFF
##7A2B8D1.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#024A90
Deuteranopia (green-blind)
#32528B
Tritanopia (blue-blind)
#7A3D58
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7a2b8d;
/* rgb */ color: rgb(122, 43, 141);
/* oklch */ color: oklch(44.8% 0.166 319.2);
Tailwind
colors: {
  custom: {
    50: '#a46baf',
    500: '#7a2b8d',
    950: '#000000',
  },
}
SCSS
$custom: #7a2b8d;
$custom-light: #a46baf;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2b8d",
  "rgb": {
    "r": 122,
    "g": 43,
    "b": 141
  },
  "hsl": {
    "h": 288.367,
    "s": 53.261,
    "l": 36.078
  },
  "oklch": {
    "l": 0.44822,
    "c": 0.16559,
    "h": 319.2
  },
  "luminance": 0.07788
}

Semantic roles & 50–950 ramp

primary
#7A2B8D
secondary
#6FB65E
accent
#DD4B67
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #7A2B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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