#7C2CB6#7C2CB6

#7C2CB6 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.2% C 0.205 H 306.4°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#7C2CB6
RGBrgb(124, 44, 182)
HSLhsl(275, 61%, 44%)
HSVhsv(275, 76%, 71%)
CMYKcmyk(31.9%, 75.8%, 0%, 28.6%)
CIE-LABlab(36.86, 57.43, -57.99)
CIE-LCHlch(36.86, 81.61, 314.72°)
OKLaboklab(48.16% 0.1215 -0.1649)
OKLCHoklch(48.16% 0.205 306.4)
XYZxyz(17.6545, 9.4640, 45.1436)
Luminance0.0946 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2CB6 #66B62C
analogous
#372CB6 #7C2CB6 #B62CAB
triadic
#7C2CB6 #B67C2C #2CB67C
tetradic
#7C2CB6 #B6372C #66B62C #2CABB6
square
#7C2CB6 #B6372C #66B62C #2CABB6
split-complementary
#7C2CB6 #ABB62C #2CB637
monochromatic
#391453 #5A2085 #7C2CB6 #9A4CD4 #B67DE0

Accessibility & contrast

On white

7.26
#7C2CB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#7C2CB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2CB6
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2CB6#FFFFFF#000000##FFFFFF
##7C2CB61.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BA
Deuteranopia (green-blind)
#0057B3
Tritanopia (blue-blind)
#724E70
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7c2cb6;
/* rgb */ color: rgb(124, 44, 182);
/* oklch */ color: oklch(48.2% 0.205 306.4);
Tailwind
colors: {
  custom: {
    50: '#a76ecd',
    500: '#7c2cb6',
    950: '#000000',
  },
}
SCSS
$custom: #7c2cb6;
$custom-light: #a76ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2cb6",
  "rgb": {
    "r": 124,
    "g": 44,
    "b": 182
  },
  "hsl": {
    "h": 274.783,
    "s": 61.062,
    "l": 44.314
  },
  "oklch": {
    "l": 0.48157,
    "c": 0.20486,
    "h": 306.4
  },
  "luminance": 0.09464
}

Semantic roles & 50–950 ramp

primary
#7C2CB6
secondary
#98C876
accent
#E44487
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7C2CB6

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

Preview Lab → · Contrast checker → · Palette generator →

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