#7C2A8B#7C2A8B

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

Color values

HEX#7C2A8B
RGBrgb(124, 42, 139)
HSLhsl(291, 54%, 35%)
HSVhsv(291, 70%, 55%)
CMYKcmyk(10.8%, 69.8%, 0%, 45.5%)
CIE-LABlab(33.58, 49.11, -37.32)
CIE-LCHlch(33.58, 61.68, 322.77°)
OKLaboklab(44.87% 0.1291 -0.1043)
OKLCHoklch(44.87% 0.166 321.1)
XYZxyz(13.7998, 7.8058, 25.2009)
Luminance0.0780 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2A8B #398B2A
analogous
#4C2A8B #7C2A8B #8B2A69
triadic
#7C2A8B #8B7C2A #2A8B7C
tetradic
#7C2A8B #8B4C2A #398B2A #2A698B
square
#7C2A8B #8B4C2A #398B2A #2A698B
split-complementary
#7C2A8B #698B2A #2A8B4C
monochromatic
#280E2D #521C5C #7C2A8B #A638BA #BE60CF

Accessibility & contrast

On white

8.20
#7C2A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#7C2A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2A8B
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2A8B#FFFFFF#000000##FFFFFF
##7C2A8B1.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07498E
Deuteranopia (green-blind)
#355289
Tritanopia (blue-blind)
#7D3B57
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7c2a8b;
/* rgb */ color: rgb(124, 42, 139);
/* oklch */ color: oklch(44.9% 0.166 321.1);
Tailwind
colors: {
  custom: {
    50: '#a56bad',
    500: '#7c2a8b',
    950: '#000000',
  },
}
SCSS
$custom: #7c2a8b;
$custom-light: #a56bad;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2a8b",
  "rgb": {
    "r": 124,
    "g": 42,
    "b": 139
  },
  "hsl": {
    "h": 290.722,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.44871,
    "c": 0.16594,
    "h": 321.1
  },
  "luminance": 0.07805
}

Semantic roles & 50–950 ramp

primary
#7C2A8B
secondary
#6AB55C
accent
#DD4B61
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7C2A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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