#7B2891#7B2891

#7B2891 is a dark, vivid purple. Relative luminance 0.078; OKLCH L 44.9% C 0.174 H 318.3°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#7B2891
RGBrgb(123, 40, 145)
HSLhsl(287, 57%, 36%)
HSVhsv(287, 72%, 57%)
CMYKcmyk(15.2%, 72.4%, 0%, 43.1%)
CIE-LABlab(33.51, 50.90, -41.13)
CIE-LCHlch(33.51, 65.44, 321.06°)
OKLaboklab(44.91% 0.1297 -0.1154)
OKLCHoklch(44.91% 0.174 318.3)
XYZxyz(14.0373, 7.7735, 27.5436)
Luminance0.0777 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2891 #3E9128
analogous
#472891 #7B2891 #912873
triadic
#7B2891 #917B28 #28917B
tetradic
#7B2891 #914728 #3E9128 #287391
square
#7B2891 #914728 #3E9128 #287391
split-complementary
#7B2891 #739128 #289147
monochromatic
#2A0E31 #521B61 #7B2891 #A435C1 #BB60D3

Accessibility & contrast

On white

8.22
#7B2891 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#7B2891 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2891
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2891#FFFFFF#000000##FFFFFF
##7B28911.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004994
Deuteranopia (green-blind)
#2D518F
Tritanopia (blue-blind)
#7B3D5A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7b2891;
/* rgb */ color: rgb(123, 40, 145);
/* oklch */ color: oklch(44.9% 0.174 318.3);
Tailwind
colors: {
  custom: {
    50: '#a56ab2',
    500: '#7b2891',
    950: '#000000',
  },
}
SCSS
$custom: #7b2891;
$custom-light: #a56ab2;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2891",
  "rgb": {
    "r": 123,
    "g": 40,
    "b": 145
  },
  "hsl": {
    "h": 287.429,
    "s": 56.757,
    "l": 36.275
  },
  "oklch": {
    "l": 0.44913,
    "c": 0.17363,
    "h": 318.3
  },
  "luminance": 0.07773
}

Semantic roles & 50–950 ramp

primary
#7B2891
secondary
#6FB95C
accent
#E04868
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7B2891

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

Preview Lab → · Contrast checker → · Palette generator →

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