#7C2D9E#7C2D9E

#7C2D9E is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.5% C 0.180 H 313.7°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#7C2D9E
RGBrgb(124, 45, 158)
HSLhsl(282, 56%, 40%)
HSVhsv(282, 72%, 62%)
CMYKcmyk(21.5%, 71.5%, 0%, 38%)
CIE-LABlab(35.26, 51.74, -46.22)
CIE-LCHlch(35.26, 69.38, 318.23°)
OKLaboklab(46.48% 0.1245 -0.1303)
OKLCHoklch(46.48% 0.18 313.7)
XYZxyz(15.4211, 8.6310, 33.1947)
Luminance0.0863 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2D9E #4F9E2D
analogous
#442D9E #7C2D9E #9E2D88
triadic
#7C2D9E #9E7C2D #2D9E7C
tetradic
#7C2D9E #9E442D #4F9E2D #2D889E
square
#7C2D9E #9E442D #4F9E2D #2D889E
split-complementary
#7C2D9E #889E2D #2D9E44
monochromatic
#31123F #571F6E #7C2D9E #9F40C9 #B76FD6

Accessibility & contrast

On white

7.70
#7C2D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#7C2D9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2D9E
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2D9E#FFFFFF#000000##FFFFFF
##7C2D9E1.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA1
Deuteranopia (green-blind)
#25559B
Tritanopia (blue-blind)
#794562
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7c2d9e;
/* rgb */ color: rgb(124, 45, 158);
/* oklch */ color: oklch(46.5% 0.180 313.7);
Tailwind
colors: {
  custom: {
    50: '#a66dbb',
    500: '#7c2d9e',
    950: '#000000',
  },
}
SCSS
$custom: #7c2d9e;
$custom-light: #a66dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2d9e",
  "rgb": {
    "r": 124,
    "g": 45,
    "b": 158
  },
  "hsl": {
    "h": 281.947,
    "s": 55.665,
    "l": 39.804
  },
  "oklch": {
    "l": 0.46475,
    "c": 0.18022,
    "h": 313.7
  },
  "luminance": 0.0863
}

Semantic roles & 50–950 ramp

primary
#7C2D9E
secondary
#83BD69
accent
#DF4976
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7C2D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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