#7C2B8B#7C2B8B

#7C2B8B is a dark, vivid purple. Relative luminance 0.079; OKLCH L 45.0% C 0.165 H 321.0°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#7C2B8B
RGBrgb(124, 43, 139)
HSLhsl(291, 53%, 36%)
HSVhsv(291, 69%, 55%)
CMYKcmyk(10.8%, 69.1%, 0%, 45.5%)
CIE-LABlab(33.73, 48.68, -37.08)
CIE-LCHlch(33.73, 61.19, 322.71°)
OKLaboklab(44.98% 0.128 -0.1036)
OKLCHoklch(44.98% 0.165 321)
XYZxyz(13.8357, 7.8776, 25.2128)
Luminance0.0788 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2B8B #3A8B2B
analogous
#4C2B8B #7C2B8B #8B2B6A
triadic
#7C2B8B #8B7C2B #2B8B7C
tetradic
#7C2B8B #8B4C2B #3A8B2B #2B6A8B
square
#7C2B8B #8B4C2B #3A8B2B #2B6A8B
split-complementary
#7C2B8B #6A8B2B #2B8B4C
monochromatic
#290E2E #521D5C #7C2B8B #A639BA #BD62CE

Accessibility & contrast

On white

8.15
#7C2B8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7C2B8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2B8B
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2B8B#FFFFFF#000000##FFFFFF
##7C2B8B1.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B4A8E
Deuteranopia (green-blind)
#355289
Tritanopia (blue-blind)
#7D3C57
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7c2b8b;
/* rgb */ color: rgb(124, 43, 139);
/* oklch */ color: oklch(45.0% 0.165 321.0);
Tailwind
colors: {
  custom: {
    50: '#a56bad',
    500: '#7c2b8b',
    950: '#000000',
  },
}
SCSS
$custom: #7c2b8b;
$custom-light: #a56bad;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2b8b",
  "rgb": {
    "r": 124,
    "g": 43,
    "b": 139
  },
  "hsl": {
    "h": 290.625,
    "s": 52.747,
    "l": 35.686
  },
  "oklch": {
    "l": 0.4498,
    "c": 0.16461,
    "h": 321
  },
  "luminance": 0.07877
}

Semantic roles & 50–950 ramp

primary
#7C2B8B
secondary
#6BB55D
accent
#DC4C62
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7C2B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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