#7B288B#7B288B

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

Color values

HEX#7B288B
RGBrgb(123, 40, 139)
HSLhsl(290, 55%, 35%)
HSVhsv(290, 71%, 55%)
CMYKcmyk(11.5%, 71.2%, 0%, 45.5%)
CIE-LABlab(33.12, 49.71, -38.06)
CIE-LCHlch(33.12, 62.60, 322.56°)
OKLaboklab(44.51% 0.1301 -0.1064)
OKLCHoklch(44.51% 0.168 320.7)
XYZxyz(13.5868, 7.5933, 25.1711)
Luminance0.0759 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B288B #388B28
analogous
#49288B #7B288B #8B2869
triadic
#7B288B #8B7B28 #288B7B
tetradic
#7B288B #8B4928 #388B28 #28698B
square
#7B288B #8B4928 #388B28 #28698B
split-complementary
#7B288B #698B28 #288B49
monochromatic
#270D2C #511A5B #7B288B #A536BB #BE5DD0

Accessibility & contrast

On white

8.34
#7B288B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#7B288B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B288B
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B288B#FFFFFF#000000##FFFFFF
##7B288B1.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00488E
Deuteranopia (green-blind)
#325189
Tritanopia (blue-blind)
#7C3A56
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7b288b;
/* rgb */ color: rgb(123, 40, 139);
/* oklch */ color: oklch(44.5% 0.168 320.7);
Tailwind
colors: {
  custom: {
    50: '#a46aad',
    500: '#7b288b',
    950: '#000000',
  },
}
SCSS
$custom: #7b288b;
$custom-light: #a46aad;
$custom-dark: #000000;
JSON
{
  "hex": "#7b288b",
  "rgb": {
    "r": 123,
    "g": 40,
    "b": 139
  },
  "hsl": {
    "h": 290.303,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.44514,
    "c": 0.16807,
    "h": 320.7
  },
  "luminance": 0.07593
}

Semantic roles & 50–950 ramp

primary
#7B288B
secondary
#68B659
accent
#DF4961
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7B288B

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

Preview Lab → · Contrast checker → · Palette generator →

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