#7B2899#7B2899

#7B2899 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.5% C 0.181 H 315.4°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#7B2899
RGBrgb(123, 40, 153)
HSLhsl(284, 59%, 38%)
HSVhsv(284, 74%, 60%)
CMYKcmyk(19.6%, 73.9%, 0%, 40%)
CIE-LABlab(34.04, 52.54, -45.16)
CIE-LCHlch(34.04, 69.28, 319.32°)
OKLaboklab(45.47% 0.1289 -0.1272)
OKLCHoklch(45.47% 0.181 315.4)
XYZxyz(14.6760, 8.0290, 30.9075)
Luminance0.0803 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2899 #469928
analogous
#432899 #7B2899 #99287E
triadic
#7B2899 #997B28 #28997B
tetradic
#7B2899 #994328 #469928 #287E99
square
#7B2899 #994328 #469928 #287E99
split-complementary
#7B2899 #7E9928 #289943
monochromatic
#2D0F38 #541B68 #7B2899 #A235CA #B865D7

Accessibility & contrast

On white

8.06
#7B2899 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#7B2899 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2899
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2899#FFFFFF#000000##FFFFFF
##7B28991.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9C
Deuteranopia (green-blind)
#255296
Tritanopia (blue-blind)
#79405E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7b2899;
/* rgb */ color: rgb(123, 40, 153);
/* oklch */ color: oklch(45.5% 0.181 315.4);
Tailwind
colors: {
  custom: {
    50: '#a56ab8',
    500: '#7b2899',
    950: '#000000',
  },
}
SCSS
$custom: #7b2899;
$custom-light: #a56ab8;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2899",
  "rgb": {
    "r": 123,
    "g": 40,
    "b": 153
  },
  "hsl": {
    "h": 284.071,
    "s": 58.549,
    "l": 37.843
  },
  "oklch": {
    "l": 0.45466,
    "c": 0.18113,
    "h": 315.4
  },
  "luminance": 0.08028
}

Semantic roles & 50–950 ramp

primary
#7B2899
secondary
#79BD60
accent
#E2466F
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7B2899

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

Preview Lab → · Contrast checker → · Palette generator →

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