#7C2CB3#7C2CB3

#7C2CB3 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.9% C 0.202 H 307.2°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#7C2CB3
RGBrgb(124, 44, 179)
HSLhsl(276, 61%, 44%)
HSVhsv(276, 75%, 70%)
CMYKcmyk(30.7%, 75.4%, 0%, 29.8%)
CIE-LABlab(36.63, 56.75, -56.59)
CIE-LCHlch(36.63, 80.14, 315.08°)
OKLaboklab(47.92% 0.1221 -0.1608)
OKLCHoklch(47.92% 0.202 307.2)
XYZxyz(17.3478, 9.3413, 43.5283)
Luminance0.0934 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2CB3 #63B32C
analogous
#392CB3 #7C2CB3 #B32CA6
triadic
#7C2CB3 #B37C2C #2CB37C
tetradic
#7C2CB3 #B3392C #63B32C #2CA6B3
square
#7C2CB3 #B3392C #63B32C #2CA6B3
split-complementary
#7C2CB3 #A6B32C #2CB339
monochromatic
#381451 #5A2082 #7C2CB3 #9B4AD2 #B67BDF

Accessibility & contrast

On white

7.32
#7C2CB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#7C2CB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2CB3
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2CB3#FFFFFF#000000##FFFFFF
##7C2CB31.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B7
Deuteranopia (green-blind)
#0057B0
Tritanopia (blue-blind)
#734D6E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7c2cb3;
/* rgb */ color: rgb(124, 44, 179);
/* oklch */ color: oklch(47.9% 0.202 307.2);
Tailwind
colors: {
  custom: {
    50: '#a76ecb',
    500: '#7c2cb3',
    950: '#000000',
  },
}
SCSS
$custom: #7c2cb3;
$custom-light: #a76ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2cb3",
  "rgb": {
    "r": 124,
    "g": 44,
    "b": 179
  },
  "hsl": {
    "h": 275.556,
    "s": 60.538,
    "l": 43.725
  },
  "oklch": {
    "l": 0.47924,
    "c": 0.20192,
    "h": 307.2
  },
  "luminance": 0.09341
}

Semantic roles & 50–950 ramp

primary
#7C2CB3
secondary
#96C774
accent
#E44485
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7C2CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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