#7B2A8B#7B2A8B

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

Color values

HEX#7B2A8B
RGBrgb(123, 42, 139)
HSLhsl(290, 54%, 35%)
HSVhsv(290, 70%, 55%)
CMYKcmyk(11.5%, 69.8%, 0%, 45.5%)
CIE-LABlab(33.42, 48.87, -37.58)
CIE-LCHlch(33.42, 61.65, 322.44°)
OKLaboklab(44.73% 0.1279 -0.1051)
OKLCHoklch(44.73% 0.165 320.6)
XYZxyz(13.6560, 7.7317, 25.1941)
Luminance0.0773 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2A8B #3A8B2A
analogous
#4A2A8B #7B2A8B #8B2A6A
triadic
#7B2A8B #8B7B2A #2A8B7B
tetradic
#7B2A8B #8B4A2A #3A8B2A #2A6A8B
square
#7B2A8B #8B4A2A #3A8B2A #2A6A8B
split-complementary
#7B2A8B #6A8B2A #2A8B4A
monochromatic
#280E2D #511C5C #7B2A8B #A538BA #BD60CF

Accessibility & contrast

On white

8.25
#7B2A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#7B2A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2A8B
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2A8B#FFFFFF#000000##FFFFFF
##7B2A8B1.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05498E
Deuteranopia (green-blind)
#345189
Tritanopia (blue-blind)
#7C3B57
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7b2a8b;
/* rgb */ color: rgb(123, 42, 139);
/* oklch */ color: oklch(44.7% 0.165 320.6);
Tailwind
colors: {
  custom: {
    50: '#a46bad',
    500: '#7b2a8b',
    950: '#000000',
  },
}
SCSS
$custom: #7b2a8b;
$custom-light: #a46bad;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2a8b",
  "rgb": {
    "r": 123,
    "g": 42,
    "b": 139
  },
  "hsl": {
    "h": 290.103,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.44726,
    "c": 0.16548,
    "h": 320.6
  },
  "luminance": 0.07731
}

Semantic roles & 50–950 ramp

primary
#7B2A8B
secondary
#6BB55C
accent
#DD4B63
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7B2A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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