#7C2EC9#7C2EC9

#7C2EC9 is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 49.9% C 0.222 H 301.4°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#7C2EC9
RGBrgb(124, 46, 201)
HSLhsl(270, 63%, 48%)
HSVhsv(270, 77%, 79%)
CMYKcmyk(38.3%, 77.1%, 0%, 21.2%)
CIE-LABlab(38.65, 60.99, -66.23)
CIE-LCHlch(38.65, 90.03, 312.64°)
OKLaboklab(49.88% 0.1153 -0.1891)
OKLCHoklch(49.88% 0.222 301.4)
XYZxyz(19.8292, 10.4560, 56.2205)
Luminance0.1046 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2EC9 #7BC92E
analogous
#2F2EC9 #7C2EC9 #C92EC8
triadic
#7C2EC9 #C97C2E #2EC97C
tetradic
#7C2EC9 #C92F2E #7BC92E #2EC8C9
square
#7C2EC9 #C92F2E #7BC92E #2EC8C9
split-complementary
#7C2EC9 #C8C92E #2EC92F
monochromatic
#3F1765 #5D2397 #7C2EC9 #9B5BD9 #B98DE5

Accessibility & contrast

On white

6.79
#7C2EC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#7C2EC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C2EC9
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2EC9#FFFFFF#000000##FFFFFF
##7C2EC91.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.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: #7c2ec9;
/* rgb */ color: rgb(124, 46, 201);
/* oklch */ color: oklch(49.9% 0.222 301.4);
Tailwind
colors: {
  custom: {
    50: '#a970da',
    500: '#7c2ec9',
    950: '#000000',
  },
}
SCSS
$custom: #7c2ec9;
$custom-light: #a970da;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2ec9",
  "rgb": {
    "r": 124,
    "g": 46,
    "b": 201
  },
  "hsl": {
    "h": 270.194,
    "s": 62.753,
    "l": 48.431
  },
  "oklch": {
    "l": 0.49881,
    "c": 0.22152,
    "h": 301.4
  },
  "luminance": 0.10456
}

Semantic roles & 50–950 ramp

primary
#7C2EC9
secondary
#A9CF84
accent
#E64293
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7C2EC9

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

Preview Lab → · Contrast checker → · Palette generator →

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