#7B2A8A#7B2A8A

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

Color values

HEX#7B2A8A
RGBrgb(123, 42, 138)
HSLhsl(291, 53%, 35%)
HSVhsv(291, 70%, 54%)
CMYKcmyk(10.9%, 69.6%, 0%, 45.9%)
CIE-LABlab(33.36, 48.67, -37.06)
CIE-LCHlch(33.36, 61.18, 322.71°)
OKLaboklab(44.66% 0.1279 -0.1035)
OKLCHoklch(44.66% 0.165 321)
XYZxyz(13.5833, 7.7026, 24.8111)
Luminance0.0770 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2A8A #398A2A
analogous
#4B2A8A #7B2A8A #8A2A69
triadic
#7B2A8A #8A7B2A #2A8A7B
tetradic
#7B2A8A #8A4B2A #398A2A #2A698A
square
#7B2A8A #8A4B2A #398A2A #2A698A
split-complementary
#7B2A8A #698A2A #2A8A4B
monochromatic
#270D2C #511C5B #7B2A8A #A538B9 #BD60CF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B2A8A#FFFFFF#000000##FFFFFF
##7B2A8A1.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)
#08498D
Deuteranopia (green-blind)
#345188
Tritanopia (blue-blind)
#7C3B57
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7b2a8a;
/* rgb */ color: rgb(123, 42, 138);
/* oklch */ color: oklch(44.7% 0.165 321.0);
Tailwind
colors: {
  custom: {
    50: '#a46bad',
    500: '#7b2a8a',
    950: '#000000',
  },
}
SCSS
$custom: #7b2a8a;
$custom-light: #a46bad;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2a8a",
  "rgb": {
    "r": 123,
    "g": 42,
    "b": 138
  },
  "hsl": {
    "h": 290.625,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.44662,
    "c": 0.16454,
    "h": 321
  },
  "luminance": 0.07702
}

Semantic roles & 50–950 ramp

primary
#7B2A8A
secondary
#69B45B
accent
#DD4B62
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7B2A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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