#7B288C#7B288C

#7B288C is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.6% C 0.169 H 320.3°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#7B288C
RGBrgb(123, 40, 140)
HSLhsl(290, 56%, 35%)
HSVhsv(290, 71%, 55%)
CMYKcmyk(12.1%, 71.4%, 0%, 45.1%)
CIE-LABlab(33.18, 49.90, -38.57)
CIE-LCHlch(33.18, 63.07, 322.30°)
OKLaboklab(44.58% 0.13 -0.1079)
OKLCHoklch(44.58% 0.169 320.3)
XYZxyz(13.6602, 7.6227, 25.5576)
Luminance0.0762 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B288C #398C28
analogous
#49288C #7B288C #8C286B
triadic
#7B288C #8C7B28 #288C7B
tetradic
#7B288C #8C4928 #398C28 #286B8C
square
#7B288C #8C4928 #398C28 #286B8C
split-complementary
#7B288C #6B8C28 #288C49
monochromatic
#270D2D #511A5C #7B288C #A536BC #BD5ED1

Accessibility & contrast

On white

8.32
#7B288C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B288C
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B288C#FFFFFF#000000##FFFFFF
##7B288C1.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00488F
Deuteranopia (green-blind)
#31518A
Tritanopia (blue-blind)
#7C3A57
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7b288c;
/* rgb */ color: rgb(123, 40, 140);
/* oklch */ color: oklch(44.6% 0.169 320.3);
Tailwind
colors: {
  custom: {
    50: '#a46aae',
    500: '#7b288c',
    950: '#000000',
  },
}
SCSS
$custom: #7b288c;
$custom-light: #a46aae;
$custom-dark: #000000;
JSON
{
  "hex": "#7b288c",
  "rgb": {
    "r": 123,
    "g": 40,
    "b": 140
  },
  "hsl": {
    "h": 289.8,
    "s": 55.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.44579,
    "c": 0.16899,
    "h": 320.3
  },
  "luminance": 0.07622
}

Semantic roles & 50–950 ramp

primary
#7B288C
secondary
#69B65A
accent
#DF4962
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7B288C

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

Preview Lab → · Contrast checker → · Palette generator →

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