#7C2D9D#7C2D9D

#7C2D9D is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.4% C 0.179 H 314.0°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#7C2D9D
RGBrgb(124, 45, 157)
HSLhsl(282, 55%, 40%)
HSVhsv(282, 71%, 62%)
CMYKcmyk(21%, 71.3%, 0%, 38.4%)
CIE-LABlab(35.20, 51.53, -45.72)
CIE-LCHlch(35.20, 68.89, 318.41°)
OKLaboklab(46.41% 0.1246 -0.1289)
OKLCHoklch(46.41% 0.179 314)
XYZxyz(15.3353, 8.5967, 32.7433)
Luminance0.0860 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2D9D #4E9D2D
analogous
#442D9D #7C2D9D #9D2D86
triadic
#7C2D9D #9D7C2D #2D9D7C
tetradic
#7C2D9D #9D442D #4E9D2D #2D869D
square
#7C2D9D #9D442D #4E9D2D #2D869D
split-complementary
#7C2D9D #869D2D #2D9D44
monochromatic
#31123E #561F6D #7C2D9D #A03FC8 #B76FD6

Accessibility & contrast

On white

7.72
#7C2D9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#7C2D9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2D9D
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2D9D#FFFFFF#000000##FFFFFF
##7C2D9D1.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA0
Deuteranopia (green-blind)
#26559A
Tritanopia (blue-blind)
#794462
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7c2d9d;
/* rgb */ color: rgb(124, 45, 157);
/* oklch */ color: oklch(46.4% 0.179 314.0);
Tailwind
colors: {
  custom: {
    50: '#a66dbb',
    500: '#7c2d9d',
    950: '#000000',
  },
}
SCSS
$custom: #7c2d9d;
$custom-light: #a66dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2d9d",
  "rgb": {
    "r": 124,
    "g": 45,
    "b": 157
  },
  "hsl": {
    "h": 282.321,
    "s": 55.446,
    "l": 39.608
  },
  "oklch": {
    "l": 0.46405,
    "c": 0.17924,
    "h": 314
  },
  "luminance": 0.08596
}

Semantic roles & 50–950 ramp

primary
#7C2D9D
secondary
#82BD69
accent
#DF4975
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7C2D9D

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

Preview Lab → · Contrast checker → · Palette generator →

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