#7B2787#7B2787

#7B2787 is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.2% C 0.166 H 322.4°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#7B2787
RGBrgb(123, 39, 135)
HSLhsl(293, 55%, 34%)
HSVhsv(293, 71%, 53%)
CMYKcmyk(8.9%, 71.1%, 0%, 47.1%)
CIE-LABlab(32.73, 49.33, -36.21)
CIE-LCHlch(32.73, 61.20, 323.72°)
OKLaboklab(44.15% 0.1313 -0.101)
OKLCHoklch(44.15% 0.166 322.4)
XYZxyz(13.2666, 7.4120, 23.6488)
Luminance0.0741 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2787 #338727
analogous
#4B2787 #7B2787 #872763
triadic
#7B2787 #877B27 #27877B
tetradic
#7B2787 #874B27 #338727 #276387
square
#7B2787 #874B27 #338727 #276387
split-complementary
#7B2787 #638727 #27874B
monochromatic
#240C28 #501958 #7B2787 #A635B6 #C059CF

Accessibility & contrast

On white

8.46
#7B2787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#7B2787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2787
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2787#FFFFFF#000000##FFFFFF
##7B27871.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06478A
Deuteranopia (green-blind)
#355085
Tritanopia (blue-blind)
#7D3854
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7b2787;
/* rgb */ color: rgb(123, 39, 135);
/* oklch */ color: oklch(44.2% 0.166 322.4);
Tailwind
colors: {
  custom: {
    50: '#a469aa',
    500: '#7b2787',
    950: '#000000',
  },
}
SCSS
$custom: #7b2787;
$custom-light: #a469aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2787",
  "rgb": {
    "r": 123,
    "g": 39,
    "b": 135
  },
  "hsl": {
    "h": 292.5,
    "s": 55.172,
    "l": 34.118
  },
  "oklch": {
    "l": 0.44151,
    "c": 0.16569,
    "h": 322.4
  },
  "luminance": 0.07411
}

Semantic roles & 50–950 ramp

primary
#7B2787
secondary
#62B456
accent
#DF495C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7B2787

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

Preview Lab → · Contrast checker → · Palette generator →

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