#7C2DA3#7C2DA3

#7C2DA3 is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.8% C 0.185 H 312.0°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#7C2DA3
RGBrgb(124, 45, 163)
HSLhsl(280, 57%, 41%)
HSVhsv(280, 72%, 64%)
CMYKcmyk(23.9%, 72.4%, 0%, 36.1%)
CIE-LABlab(35.61, 52.82, -48.68)
CIE-LCHlch(35.61, 71.83, 317.33°)
OKLaboklab(46.83% 0.1239 -0.1376)
OKLCHoklch(46.83% 0.185 312)
XYZxyz(15.8602, 8.8066, 35.5076)
Luminance0.0881 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2DA3 #54A32D
analogous
#412DA3 #7C2DA3 #A32D8F
triadic
#7C2DA3 #A37C2D #2DA37C
tetradic
#7C2DA3 #A3412D #54A32D #2D8FA3
square
#7C2DA3 #A3412D #54A32D #2D8FA3
split-complementary
#7C2DA3 #8FA32D #2DA341
monochromatic
#331343 #582073 #7C2DA3 #9E42CB #B672D8

Accessibility & contrast

On white

7.61
#7C2DA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#7C2DA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2DA3
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2DA3#FFFFFF#000000##FFFFFF
##7C2DA31.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A6
Deuteranopia (green-blind)
#1E55A0
Tritanopia (blue-blind)
#774765
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7c2da3;
/* rgb */ color: rgb(124, 45, 163);
/* oklch */ color: oklch(46.8% 0.185 312.0);
Tailwind
colors: {
  custom: {
    50: '#a66dbf',
    500: '#7c2da3',
    950: '#000000',
  },
}
SCSS
$custom: #7c2da3;
$custom-light: #a66dbf;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2da3",
  "rgb": {
    "r": 124,
    "g": 45,
    "b": 163
  },
  "hsl": {
    "h": 280.169,
    "s": 56.731,
    "l": 40.784
  },
  "oklch": {
    "l": 0.4683,
    "c": 0.18511,
    "h": 312
  },
  "luminance": 0.08806
}

Semantic roles & 50–950 ramp

primary
#7C2DA3
secondary
#88C06C
accent
#E0487A
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7C2DA3

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

Preview Lab → · Contrast checker → · Palette generator →

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