#7C2DAD#7C2DAD

#7C2DAD is a mid, vivid violet. Relative luminance 0.092; OKLCH L 47.6% C 0.195 H 308.9°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#7C2DAD
RGBrgb(124, 45, 173)
HSLhsl(277, 59%, 43%)
HSVhsv(277, 74%, 68%)
CMYKcmyk(28.3%, 74%, 0%, 32.2%)
CIE-LABlab(36.33, 55.01, -53.51)
CIE-LCHlch(36.33, 76.74, 315.79°)
OKLaboklab(47.57% 0.1223 -0.1518)
OKLCHoklch(47.57% 0.195 308.9)
XYZxyz(16.7919, 9.1793, 40.4143)
Luminance0.0918 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2DAD #5EAD2D
analogous
#3C2DAD #7C2DAD #AD2D9E
triadic
#7C2DAD #AD7C2D #2DAD7C
tetradic
#7C2DAD #AD3C2D #5EAD2D #2D9EAD
square
#7C2DAD #AD3C2D #5EAD2D #2D9EAD
split-complementary
#7C2DAD #9EAD2D #2DAD3C
monochromatic
#36144C #59207C #7C2DAD #9B48CF #B678DC

Accessibility & contrast

On white

7.41
#7C2DAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#7C2DAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2DAD
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2DAD#FFFFFF#000000##FFFFFF
##7C2DAD1.007.412.847.41
#FFFFFF7.411.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B1
Deuteranopia (green-blind)
#0456AA
Tritanopia (blue-blind)
#754B6B
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7c2dad;
/* rgb */ color: rgb(124, 45, 173);
/* oklch */ color: oklch(47.6% 0.195 308.9);
Tailwind
colors: {
  custom: {
    50: '#a76ec6',
    500: '#7c2dad',
    950: '#000000',
  },
}
SCSS
$custom: #7c2dad;
$custom-light: #a76ec6;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2dad",
  "rgb": {
    "r": 124,
    "g": 45,
    "b": 173
  },
  "hsl": {
    "h": 277.031,
    "s": 58.716,
    "l": 42.745
  },
  "oklch": {
    "l": 0.47567,
    "c": 0.19493,
    "h": 308.9
  },
  "luminance": 0.09179
}

Semantic roles & 50–950 ramp

primary
#7C2DAD
secondary
#91C472
accent
#E24682
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7C2DAD

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

Preview Lab → · Contrast checker → · Palette generator →

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