#7B288D#7B288D

#7B288D is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.6% C 0.170 H 319.9°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#7B288D
RGBrgb(123, 40, 141)
HSLhsl(289, 56%, 35%)
HSVhsv(289, 72%, 55%)
CMYKcmyk(12.8%, 71.6%, 0%, 44.7%)
CIE-LABlab(33.25, 50.10, -39.09)
CIE-LCHlch(33.25, 63.54, 322.04°)
OKLaboklab(44.65% 0.13 -0.1094)
OKLCHoklch(44.65% 0.17 319.9)
XYZxyz(13.7343, 7.6523, 25.9477)
Luminance0.0765 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B288D #3A8D28
analogous
#48288D #7B288D #8D286C
triadic
#7B288D #8D7B28 #288D7B
tetradic
#7B288D #8D4828 #3A8D28 #286C8D
square
#7B288D #8D4828 #3A8D28 #286C8D
split-complementary
#7B288D #6C8D28 #288D48
monochromatic
#280D2E #511A5D #7B288D #A536BD #BD5ED1

Accessibility & contrast

On white

8.30
#7B288D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#7B288D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B288D
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B288D#FFFFFF#000000##FFFFFF
##7B288D1.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004990
Deuteranopia (green-blind)
#31518B
Tritanopia (blue-blind)
#7B3B58
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7b288d;
/* rgb */ color: rgb(123, 40, 141);
/* oklch */ color: oklch(44.6% 0.170 319.9);
Tailwind
colors: {
  custom: {
    50: '#a46aaf',
    500: '#7b288d',
    950: '#000000',
  },
}
SCSS
$custom: #7b288d;
$custom-light: #a46aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#7b288d",
  "rgb": {
    "r": 123,
    "g": 40,
    "b": 141
  },
  "hsl": {
    "h": 289.307,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.44645,
    "c": 0.16992,
    "h": 319.9
  },
  "luminance": 0.07652
}

Semantic roles & 50–950 ramp

primary
#7B288D
secondary
#6BB75A
accent
#DF4963
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7B288D

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

Preview Lab → · Contrast checker → · Palette generator →

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