#7B2B8A#7B2B8A

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

Color values

HEX#7B2B8A
RGBrgb(123, 43, 138)
HSLhsl(291, 52%, 35%)
HSVhsv(291, 69%, 54%)
CMYKcmyk(10.9%, 68.8%, 0%, 45.9%)
CIE-LABlab(33.51, 48.24, -36.82)
CIE-LCHlch(33.51, 60.69, 322.65°)
OKLaboklab(44.77% 0.1267 -0.1028)
OKLCHoklch(44.77% 0.163 320.9)
XYZxyz(13.6192, 7.7744, 24.8231)
Luminance0.0777 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2B8A #3A8A2B
analogous
#4B2B8A #7B2B8A #8A2B69
triadic
#7B2B8A #8A7B2B #2B8A7B
tetradic
#7B2B8A #8A4B2B #3A8A2B #2B698A
square
#7B2B8A #8A4B2B #3A8A2B #2B698A
split-complementary
#7B2B8A #698A2B #2B8A4B
monochromatic
#280E2D #511C5B #7B2B8A #A53AB9 #BD61CE

Accessibility & contrast

On white

8.22
#7B2B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B2B8A
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2B8A#FFFFFF#000000##FFFFFF
##7B2B8A1.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C498D
Deuteranopia (green-blind)
#355288
Tritanopia (blue-blind)
#7C3C57
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7b2b8a;
/* rgb */ color: rgb(123, 43, 138);
/* oklch */ color: oklch(44.8% 0.163 320.9);
Tailwind
colors: {
  custom: {
    50: '#a46bad',
    500: '#7b2b8a',
    950: '#000000',
  },
}
SCSS
$custom: #7b2b8a;
$custom-light: #a46bad;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2b8a",
  "rgb": {
    "r": 123,
    "g": 43,
    "b": 138
  },
  "hsl": {
    "h": 290.526,
    "s": 52.486,
    "l": 35.49
  },
  "oklch": {
    "l": 0.44772,
    "c": 0.16321,
    "h": 320.9
  },
  "luminance": 0.07774
}

Semantic roles & 50–950 ramp

primary
#7B2B8A
secondary
#6BB45D
accent
#DC4C63
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7B2B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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