#7C2B8D#7C2B8D

#7C2B8D is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.1% C 0.166 H 320.2°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#7C2B8D
RGBrgb(124, 43, 141)
HSLhsl(290, 53%, 36%)
HSVhsv(290, 70%, 55%)
CMYKcmyk(12.1%, 69.5%, 0%, 44.7%)
CIE-LABlab(33.85, 49.08, -38.11)
CIE-LCHlch(33.85, 62.14, 322.17°)
OKLaboklab(45.11% 0.1279 -0.1066)
OKLCHoklch(45.11% 0.166 320.2)
XYZxyz(13.9832, 7.9366, 25.9895)
Luminance0.0794 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2B8D #3C8D2B
analogous
#4B2B8D #7C2B8D #8D2B6D
triadic
#7C2B8D #8D7C2B #2B8D7C
tetradic
#7C2B8D #8D4B2B #3C8D2B #2B6D8D
square
#7C2B8D #8D4B2B #3C8D2B #2B6D8D
split-complementary
#7C2B8D #6D8D2B #2B8D4B
monochromatic
#2A0E2F #531D5E #7C2B8D #A539BC #BD63CF

Accessibility & contrast

On white

8.12
#7C2B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#7C2B8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2B8D
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2B8D#FFFFFF#000000##FFFFFF
##7C2B8D1.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#054A90
Deuteranopia (green-blind)
#34528B
Tritanopia (blue-blind)
#7D3D58
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7c2b8d;
/* rgb */ color: rgb(124, 43, 141);
/* oklch */ color: oklch(45.1% 0.166 320.2);
Tailwind
colors: {
  custom: {
    50: '#a56baf',
    500: '#7c2b8d',
    950: '#000000',
  },
}
SCSS
$custom: #7c2b8d;
$custom-light: #a56baf;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2b8d",
  "rgb": {
    "r": 124,
    "g": 43,
    "b": 141
  },
  "hsl": {
    "h": 289.592,
    "s": 53.261,
    "l": 36.078
  },
  "oklch": {
    "l": 0.45109,
    "c": 0.16649,
    "h": 320.2
  },
  "luminance": 0.07936
}

Semantic roles & 50–950 ramp

primary
#7C2B8D
secondary
#6DB65E
accent
#DD4B64
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7C2B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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