#7C2899#7C2899

#7C2899 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.6% C 0.181 H 315.8°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#7C2899
RGBrgb(124, 40, 153)
HSLhsl(285, 59%, 38%)
HSVhsv(285, 74%, 60%)
CMYKcmyk(19%, 73.9%, 0%, 40%)
CIE-LABlab(34.20, 52.75, -44.90)
CIE-LCHlch(34.20, 69.27, 319.59°)
OKLaboklab(45.61% 0.1302 -0.1264)
OKLCHoklch(45.61% 0.182 315.8)
XYZxyz(14.8198, 8.1031, 30.9142)
Luminance0.0810 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2899 #459928
analogous
#442899 #7C2899 #99287D
triadic
#7C2899 #997C28 #28997C
tetradic
#7C2899 #994428 #459928 #287D99
square
#7C2899 #994428 #459928 #287D99
split-complementary
#7C2899 #7D9928 #289944
monochromatic
#2D0F38 #551B68 #7C2899 #A335CA #B965D7

Accessibility & contrast

On white

8.01
#7C2899 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#7C2899 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2899
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2899#FFFFFF#000000##FFFFFF
##7C28991.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9C
Deuteranopia (green-blind)
#265396
Tritanopia (blue-blind)
#7A405E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7c2899;
/* rgb */ color: rgb(124, 40, 153);
/* oklch */ color: oklch(45.6% 0.181 315.8);
Tailwind
colors: {
  custom: {
    50: '#a66ab8',
    500: '#7c2899',
    950: '#000000',
  },
}
SCSS
$custom: #7c2899;
$custom-light: #a66ab8;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2899",
  "rgb": {
    "r": 124,
    "g": 40,
    "b": 153
  },
  "hsl": {
    "h": 284.602,
    "s": 58.549,
    "l": 37.843
  },
  "oklch": {
    "l": 0.45606,
    "c": 0.1815,
    "h": 315.8
  },
  "luminance": 0.08103
}

Semantic roles & 50–950 ramp

primary
#7C2899
secondary
#78BD60
accent
#E2466E
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7C2899

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

Preview Lab → · Contrast checker → · Palette generator →

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