#7C2DA4#7C2DA4

#7C2DA4 is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.9% C 0.186 H 311.7°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#7C2DA4
RGBrgb(124, 45, 164)
HSLhsl(280, 57%, 41%)
HSVhsv(280, 73%, 64%)
CMYKcmyk(24.4%, 72.6%, 0%, 35.7%)
CIE-LABlab(35.68, 53.03, -49.17)
CIE-LCHlch(35.68, 72.32, 317.17°)
OKLaboklab(46.9% 0.1237 -0.139)
OKLCHoklch(46.9% 0.186 311.7)
XYZxyz(15.9502, 8.8426, 35.9813)
Luminance0.0884 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2DA4 #55A42D
analogous
#402DA4 #7C2DA4 #A42D90
triadic
#7C2DA4 #A47C2D #2DA47C
tetradic
#7C2DA4 #A4402D #55A42D #2D90A4
square
#7C2DA4 #A4402D #55A42D #2D90A4
split-complementary
#7C2DA4 #90A42D #2DA440
monochromatic
#331344 #582074 #7C2DA4 #9D43CB #B673D9

Accessibility & contrast

On white

7.59
#7C2DA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#7C2DA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2DA4
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2DA4#FFFFFF#000000##FFFFFF
##7C2DA41.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A7
Deuteranopia (green-blind)
#1D55A1
Tritanopia (blue-blind)
#774766
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7c2da4;
/* rgb */ color: rgb(124, 45, 164);
/* oklch */ color: oklch(46.9% 0.186 311.7);
Tailwind
colors: {
  custom: {
    50: '#a66dc0',
    500: '#7c2da4',
    950: '#000000',
  },
}
SCSS
$custom: #7c2da4;
$custom-light: #a66dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2da4",
  "rgb": {
    "r": 124,
    "g": 45,
    "b": 164
  },
  "hsl": {
    "h": 279.832,
    "s": 56.938,
    "l": 40.98
  },
  "oklch": {
    "l": 0.46903,
    "c": 0.18609,
    "h": 311.7
  },
  "luminance": 0.08842
}

Semantic roles & 50–950 ramp

primary
#7C2DA4
secondary
#89C06D
accent
#E0487B
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7C2DA4

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

Preview Lab → · Contrast checker → · Palette generator →

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