#7B2A88#7B2A88

#7B2A88 is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.5% C 0.163 H 321.8°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#7B2A88
RGBrgb(123, 42, 136)
HSLhsl(292, 53%, 35%)
HSVhsv(292, 69%, 53%)
CMYKcmyk(9.6%, 69.1%, 0%, 46.7%)
CIE-LABlab(33.23, 48.28, -36.02)
CIE-LCHlch(33.23, 60.24, 323.27°)
OKLaboklab(44.53% 0.1279 -0.1005)
OKLCHoklch(44.53% 0.163 321.8)
XYZxyz(13.4398, 7.6452, 24.0555)
Luminance0.0764 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2A88 #37882A
analogous
#4C2A88 #7B2A88 #882A66
triadic
#7B2A88 #887B2A #2A887B
tetradic
#7B2A88 #884C2A #37882A #2A6688
square
#7B2A88 #884C2A #37882A #2A6688
split-complementary
#7B2A88 #66882A #2A884C
monochromatic
#260D2A #511C59 #7B2A88 #A538B7 #BE5FCE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B2A88#FFFFFF#000000##FFFFFF
##7B2A881.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)
#0D488B
Deuteranopia (green-blind)
#365186
Tritanopia (blue-blind)
#7C3A55
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7b2a88;
/* rgb */ color: rgb(123, 42, 136);
/* oklch */ color: oklch(44.5% 0.163 321.8);
Tailwind
colors: {
  custom: {
    50: '#a46bab',
    500: '#7b2a88',
    950: '#000000',
  },
}
SCSS
$custom: #7b2a88;
$custom-light: #a46bab;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2a88",
  "rgb": {
    "r": 123,
    "g": 42,
    "b": 136
  },
  "hsl": {
    "h": 291.702,
    "s": 52.809,
    "l": 34.902
  },
  "oklch": {
    "l": 0.44534,
    "c": 0.16268,
    "h": 321.8
  },
  "luminance": 0.07644
}

Semantic roles & 50–950 ramp

primary
#7B2A88
secondary
#67B35B
accent
#DC4C60
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7B2A88

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

Preview Lab → · Contrast checker → · Palette generator →

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