#7C2B99#7C2B99

#7C2B99 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.9% C 0.178 H 315.6°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#7C2B99
RGBrgb(124, 43, 153)
HSLhsl(284, 56%, 38%)
HSVhsv(284, 72%, 60%)
CMYKcmyk(19%, 71.9%, 0%, 40%)
CIE-LABlab(34.63, 51.53, -44.21)
CIE-LCHlch(34.63, 67.90, 319.37°)
OKLaboklab(45.91% 0.1271 -0.1244)
OKLCHoklch(45.91% 0.178 315.6)
XYZxyz(14.9249, 8.3133, 30.9493)
Luminance0.0831 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2B99 #48992B
analogous
#452B99 #7C2B99 #992B7F
triadic
#7C2B99 #997C2B #2B997C
tetradic
#7C2B99 #99452B #48992B #2B7F99
square
#7C2B99 #99452B #48992B #2B7F99
split-complementary
#7C2B99 #7F992B #2B9945
monochromatic
#2F1039 #551E69 #7C2B99 #A23AC8 #B969D5

Accessibility & contrast

On white

7.89
#7C2B99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#7C2B99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2B99
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2B99#FFFFFF#000000##FFFFFF
##7C2B991.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9C
Deuteranopia (green-blind)
#295497
Tritanopia (blue-blind)
#7A425F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7c2b99;
/* rgb */ color: rgb(124, 43, 153);
/* oklch */ color: oklch(45.9% 0.178 315.6);
Tailwind
colors: {
  custom: {
    50: '#a56cb8',
    500: '#7c2b99',
    950: '#000000',
  },
}
SCSS
$custom: #7c2b99;
$custom-light: #a56cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2b99",
  "rgb": {
    "r": 124,
    "g": 43,
    "b": 153
  },
  "hsl": {
    "h": 284.182,
    "s": 56.122,
    "l": 38.431
  },
  "oklch": {
    "l": 0.45913,
    "c": 0.17787,
    "h": 315.6
  },
  "luminance": 0.08313
}

Semantic roles & 50–950 ramp

primary
#7C2B99
secondary
#7BBC64
accent
#DF4870
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7C2B99

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

Preview Lab → · Contrast checker → · Palette generator →

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