#7C2DC9#7C2DC9

#7C2DC9 is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.8% C 0.222 H 301.5°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#7C2DC9
RGBrgb(124, 45, 201)
HSLhsl(270, 63%, 48%)
HSVhsv(270, 78%, 79%)
CMYKcmyk(38.3%, 77.6%, 0%, 21.2%)
CIE-LABlab(38.51, 61.38, -66.45)
CIE-LCHlch(38.51, 90.46, 312.73°)
OKLaboklab(49.79% 0.1161 -0.1898)
OKLCHoklch(49.79% 0.222 301.5)
XYZxyz(19.7906, 10.3788, 56.2077)
Luminance0.1038 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2DC9 #7AC92D
analogous
#2E2DC9 #7C2DC9 #C92DC8
triadic
#7C2DC9 #C97C2D #2DC97C
tetradic
#7C2DC9 #C92E2D #7AC92D #2DC8C9
square
#7C2DC9 #C92E2D #7AC92D #2DC8C9
split-complementary
#7C2DC9 #C8C92D #2DC92E
monochromatic
#3E1765 #5D2297 #7C2DC9 #9A59DA #B98BE5

Accessibility & contrast

On white

6.83
#7C2DC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#7C2DC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C2DC9
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2DC9#FFFFFF#000000##FFFFFF
##7C2DC91.006.833.086.83
#FFFFFF6.831.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACD
Deuteranopia (green-blind)
#005AC6
Tritanopia (blue-blind)
#6B577B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7c2dc9;
/* rgb */ color: rgb(124, 45, 201);
/* oklch */ color: oklch(49.8% 0.222 301.5);
Tailwind
colors: {
  custom: {
    50: '#a96fda',
    500: '#7c2dc9',
    950: '#000000',
  },
}
SCSS
$custom: #7c2dc9;
$custom-light: #a96fda;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2dc9",
  "rgb": {
    "r": 124,
    "g": 45,
    "b": 201
  },
  "hsl": {
    "h": 270.385,
    "s": 63.415,
    "l": 48.235
  },
  "oklch": {
    "l": 0.49786,
    "c": 0.22248,
    "h": 301.5
  },
  "luminance": 0.10379
}

Semantic roles & 50–950 ramp

primary
#7C2DC9
secondary
#A8CF83
accent
#E64193
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7C2DC9

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

Preview Lab → · Contrast checker → · Palette generator →

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