#7C2D8D#7C2D8D

#7C2D8D is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.3% C 0.164 H 320.1°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#7C2D8D
RGBrgb(124, 45, 141)
HSLhsl(289, 52%, 36%)
HSVhsv(289, 68%, 55%)
CMYKcmyk(12.1%, 68.1%, 0%, 44.7%)
CIE-LABlab(34.16, 48.21, -37.62)
CIE-LCHlch(34.16, 61.15, 322.04°)
OKLaboklab(45.33% 0.1256 -0.1052)
OKLCHoklch(45.33% 0.164 320.1)
XYZxyz(14.0577, 8.0856, 26.0143)
Luminance0.0809 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2D8D #3E8D2D
analogous
#4C2D8D #7C2D8D #8D2D6E
triadic
#7C2D8D #8D7C2D #2D8D7C
tetradic
#7C2D8D #8D4C2D #3E8D2D #2D6E8D
square
#7C2D8D #8D4C2D #3E8D2D #2D6E8D
split-complementary
#7C2D8D #6E8D2D #2D8D4C
monochromatic
#2A0F30 #531E5F #7C2D8D #A53CBB #BC66CE

Accessibility & contrast

On white

8.02
#7C2D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C2D8D
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2D8D#FFFFFF#000000##FFFFFF
##7C2D8D1.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C4B90
Deuteranopia (green-blind)
#35538B
Tritanopia (blue-blind)
#7D3E59
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7c2d8d;
/* rgb */ color: rgb(124, 45, 141);
/* oklch */ color: oklch(45.3% 0.164 320.1);
Tailwind
colors: {
  custom: {
    50: '#a56caf',
    500: '#7c2d8d',
    950: '#000000',
  },
}
SCSS
$custom: #7c2d8d;
$custom-light: #a56caf;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2d8d",
  "rgb": {
    "r": 124,
    "g": 45,
    "b": 141
  },
  "hsl": {
    "h": 289.375,
    "s": 51.613,
    "l": 36.471
  },
  "oklch": {
    "l": 0.45331,
    "c": 0.1638,
    "h": 320.1
  },
  "luminance": 0.08085
}

Semantic roles & 50–950 ramp

primary
#7C2D8D
secondary
#70B561
accent
#DB4D66
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7C2D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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