#7B288E#7B288E

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

Color values

HEX#7B288E
RGBrgb(123, 40, 142)
HSLhsl(289, 56%, 36%)
HSVhsv(289, 72%, 56%)
CMYKcmyk(13.4%, 71.8%, 0%, 44.3%)
CIE-LABlab(33.31, 50.30, -39.60)
CIE-LCHlch(33.31, 64.02, 321.79°)
OKLaboklab(44.71% 0.1299 -0.1109)
OKLCHoklch(44.71% 0.171 319.5)
XYZxyz(13.8090, 7.6822, 26.3414)
Luminance0.0768 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B288E #3B8E28
analogous
#48288E #7B288E #8E286E
triadic
#7B288E #8E7B28 #288E7B
tetradic
#7B288E #8E4828 #3B8E28 #286E8E
square
#7B288E #8E4828 #3B8E28 #286E8E
split-complementary
#7B288E #6E8E28 #288E48
monochromatic
#280D2F #521B5E #7B288E #A435BE #BC5FD2

Accessibility & contrast

On white

8.28
#7B288E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B288E
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B288E#FFFFFF#000000##FFFFFF
##7B288E1.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004991
Deuteranopia (green-blind)
#30518C
Tritanopia (blue-blind)
#7B3B58
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7b288e;
/* rgb */ color: rgb(123, 40, 142);
/* oklch */ color: oklch(44.7% 0.171 319.5);
Tailwind
colors: {
  custom: {
    50: '#a46ab0',
    500: '#7b288e',
    950: '#000000',
  },
}
SCSS
$custom: #7b288e;
$custom-light: #a46ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b288e",
  "rgb": {
    "r": 123,
    "g": 40,
    "b": 142
  },
  "hsl": {
    "h": 288.824,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.44712,
    "c": 0.17084,
    "h": 319.5
  },
  "luminance": 0.07682
}

Semantic roles & 50–950 ramp

primary
#7B288E
secondary
#6CB75B
accent
#DF4865
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7B288E

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

Preview Lab → · Contrast checker → · Palette generator →

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