#7B2887#7B2887

#7B2887 is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.3% C 0.164 H 322.4°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#7B2887
RGBrgb(123, 40, 135)
HSLhsl(292, 54%, 34%)
HSVhsv(292, 70%, 53%)
CMYKcmyk(8.9%, 70.4%, 0%, 47.1%)
CIE-LABlab(32.87, 48.92, -35.98)
CIE-LCHlch(32.87, 60.73, 323.67°)
OKLaboklab(44.26% 0.1302 -0.1004)
OKLCHoklch(44.26% 0.164 322.4)
XYZxyz(13.2999, 7.4785, 23.6599)
Luminance0.0748 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2887 #348728
analogous
#4C2887 #7B2887 #872864
triadic
#7B2887 #877B28 #28877B
tetradic
#7B2887 #874C28 #348728 #286487
square
#7B2887 #874C28 #348728 #286487
split-complementary
#7B2887 #648728 #28874C
monochromatic
#250C29 #501A58 #7B2887 #A636B6 #C05BCE

Accessibility & contrast

On white

8.41
#7B2887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#7B2887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2887
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2887#FFFFFF#000000##FFFFFF
##7B28871.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7b2887;
/* rgb */ color: rgb(123, 40, 135);
/* oklch */ color: oklch(44.3% 0.164 322.4);
Tailwind
colors: {
  custom: {
    50: '#a46aaa',
    500: '#7b2887',
    950: '#000000',
  },
}
SCSS
$custom: #7b2887;
$custom-light: #a46aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2887",
  "rgb": {
    "r": 123,
    "g": 40,
    "b": 135
  },
  "hsl": {
    "h": 292.421,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.44255,
    "c": 0.16441,
    "h": 322.4
  },
  "luminance": 0.07478
}

Semantic roles & 50–950 ramp

primary
#7B2887
secondary
#63B457
accent
#DE4A5D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7B2887

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

Preview Lab → · Contrast checker → · Palette generator →

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