#7C2DA7#7C2DA7

#7C2DA7 is a mid, vivid violet. Relative luminance 0.090; OKLCH L 47.1% C 0.189 H 310.7°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#7C2DA7
RGBrgb(124, 45, 167)
HSLhsl(279, 58%, 42%)
HSVhsv(279, 73%, 65%)
CMYKcmyk(25.7%, 73.1%, 0%, 34.5%)
CIE-LABlab(35.89, 53.69, -50.63)
CIE-LCHlch(35.89, 73.79, 316.68°)
OKLaboklab(47.12% 0.1233 -0.1433)
OKLCHoklch(47.12% 0.189 310.7)
XYZxyz(16.2243, 8.9523, 37.4250)
Luminance0.0895 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2DA7 #58A72D
analogous
#3F2DA7 #7C2DA7 #A72D95
triadic
#7C2DA7 #A77C2D #2DA77C
tetradic
#7C2DA7 #A73F2D #58A72D #2D95A7
square
#7C2DA7 #A73F2D #58A72D #2D95A7
split-complementary
#7C2DA7 #95A72D #2DA73F
monochromatic
#341347 #582077 #7C2DA7 #9D44CD #B675DA

Accessibility & contrast

On white

7.53
#7C2DA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#7C2DA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2DA7
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2DA7#FFFFFF#000000##FFFFFF
##7C2DA71.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AA
Deuteranopia (green-blind)
#1756A4
Tritanopia (blue-blind)
#764867
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7c2da7;
/* rgb */ color: rgb(124, 45, 167);
/* oklch */ color: oklch(47.1% 0.189 310.7);
Tailwind
colors: {
  custom: {
    50: '#a66dc2',
    500: '#7c2da7',
    950: '#000000',
  },
}
SCSS
$custom: #7c2da7;
$custom-light: #a66dc2;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2da7",
  "rgb": {
    "r": 124,
    "g": 45,
    "b": 167
  },
  "hsl": {
    "h": 278.852,
    "s": 57.547,
    "l": 41.569
  },
  "oklch": {
    "l": 0.47121,
    "c": 0.18903,
    "h": 310.7
  },
  "luminance": 0.08952
}

Semantic roles & 50–950 ramp

primary
#7C2DA7
secondary
#8CC16E
accent
#E1477D
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7C2DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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