#7B288A#7B288A

#7B288A is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.4% C 0.167 H 321.1°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#7B288A
RGBrgb(123, 40, 138)
HSLhsl(291, 55%, 35%)
HSVhsv(291, 71%, 54%)
CMYKcmyk(10.9%, 71%, 0%, 45.9%)
CIE-LABlab(33.06, 49.51, -37.54)
CIE-LCHlch(33.06, 62.13, 322.83°)
OKLaboklab(44.45% 0.1301 -0.1049)
OKLCHoklch(44.45% 0.167 321.1)
XYZxyz(13.5141, 7.5642, 24.7880)
Luminance0.0756 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B288A #378A28
analogous
#4A288A #7B288A #8A2868
triadic
#7B288A #8A7B28 #288A7B
tetradic
#7B288A #8A4A28 #378A28 #28688A
square
#7B288A #8A4A28 #378A28 #28688A
split-complementary
#7B288A #688A28 #288A4A
monochromatic
#260C2B #511A5B #7B288A #A536B9 #BE5DD0

Accessibility & contrast

On white

8.36
#7B288A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#7B288A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B288A
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B288A#FFFFFF#000000##FFFFFF
##7B288A1.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01488D
Deuteranopia (green-blind)
#335188
Tritanopia (blue-blind)
#7C3A56
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7b288a;
/* rgb */ color: rgb(123, 40, 138);
/* oklch */ color: oklch(44.4% 0.167 321.1);
Tailwind
colors: {
  custom: {
    50: '#a46aad',
    500: '#7b288a',
    950: '#000000',
  },
}
SCSS
$custom: #7b288a;
$custom-light: #a46aad;
$custom-dark: #000000;
JSON
{
  "hex": "#7b288a",
  "rgb": {
    "r": 123,
    "g": 40,
    "b": 138
  },
  "hsl": {
    "h": 290.816,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.44449,
    "c": 0.16715,
    "h": 321.1
  },
  "luminance": 0.07564
}

Semantic roles & 50–950 ramp

primary
#7B288A
secondary
#67B559
accent
#DE4960
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7B288A

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

Preview Lab → · Contrast checker → · Palette generator →

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