#7B288F#7B288F

#7B288F is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.8% C 0.172 H 319.1°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#7B288F
RGBrgb(123, 40, 143)
HSLhsl(288, 56%, 36%)
HSVhsv(288, 72%, 56%)
CMYKcmyk(14%, 72%, 0%, 43.9%)
CIE-LABlab(33.38, 50.50, -40.11)
CIE-LCHlch(33.38, 64.49, 321.54°)
OKLaboklab(44.78% 0.1299 -0.1124)
OKLCHoklch(44.78% 0.172 319.1)
XYZxyz(13.8844, 7.7124, 26.7386)
Luminance0.0771 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B288F #3C8F28
analogous
#48288F #7B288F #8F286F
triadic
#7B288F #8F7B28 #288F7B
tetradic
#7B288F #8F4828 #3C8F28 #286F8F
square
#7B288F #8F4828 #3C8F28 #286F8F
split-complementary
#7B288F #6F8F28 #288F48
monochromatic
#290D2F #521B5F #7B288F #A435BF #BC5FD2

Accessibility & contrast

On white

8.26
#7B288F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B288F
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B288F#FFFFFF#000000##FFFFFF
##7B288F1.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004992
Deuteranopia (green-blind)
#2F518D
Tritanopia (blue-blind)
#7B3C59
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7b288f;
/* rgb */ color: rgb(123, 40, 143);
/* oklch */ color: oklch(44.8% 0.172 319.1);
Tailwind
colors: {
  custom: {
    50: '#a46ab0',
    500: '#7b288f',
    950: '#000000',
  },
}
SCSS
$custom: #7b288f;
$custom-light: #a46ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b288f",
  "rgb": {
    "r": 123,
    "g": 40,
    "b": 143
  },
  "hsl": {
    "h": 288.35,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.44778,
    "c": 0.17177,
    "h": 319.1
  },
  "luminance": 0.07712
}

Semantic roles & 50–950 ramp

primary
#7B288F
secondary
#6DB85B
accent
#E04866
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7B288F

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

Preview Lab → · Contrast checker → · Palette generator →

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