#7C2CBD#7C2CBD

#7C2CBD is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.7% C 0.212 H 304.5°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#7C2CBD
RGBrgb(124, 44, 189)
HSLhsl(273, 62%, 46%)
HSVhsv(273, 77%, 74%)
CMYKcmyk(34.4%, 76.7%, 0%, 25.9%)
CIE-LABlab(37.41, 59.01, -61.23)
CIE-LCHlch(37.41, 85.04, 313.94°)
OKLaboklab(48.71% 0.1199 -0.1744)
OKLCHoklch(48.71% 0.212 304.5)
XYZxyz(18.3961, 9.7607, 49.0491)
Luminance0.0976 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2CBD #6DBD2C
analogous
#332CBD #7C2CBD #BD2CB6
triadic
#7C2CBD #BD7C2C #2CBD7C
tetradic
#7C2CBD #BD332C #6DBD2C #2CB6BD
square
#7C2CBD #BD332C #6DBD2C #2CB6BD
split-complementary
#7C2CBD #B6BD2C #2CBD33
monochromatic
#3B155A #5B208B #7C2CBD #9A50D6 #B782E2

Accessibility & contrast

On white

7.11
#7C2CBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#7C2CBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2CBD
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2CBD#FFFFFF#000000##FFFFFF
##7C2CBD1.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C1
Deuteranopia (green-blind)
#0058BA
Tritanopia (blue-blind)
#6F5173
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7c2cbd;
/* rgb */ color: rgb(124, 44, 189);
/* oklch */ color: oklch(48.7% 0.212 304.5);
Tailwind
colors: {
  custom: {
    50: '#a86ed2',
    500: '#7c2cbd',
    950: '#000000',
  },
}
SCSS
$custom: #7c2cbd;
$custom-light: #a86ed2;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2cbd",
  "rgb": {
    "r": 124,
    "g": 44,
    "b": 189
  },
  "hsl": {
    "h": 273.103,
    "s": 62.232,
    "l": 45.686
  },
  "oklch": {
    "l": 0.48712,
    "c": 0.2117,
    "h": 304.5
  },
  "luminance": 0.09761
}

Semantic roles & 50–950 ramp

primary
#7C2CBD
secondary
#9ECB7A
accent
#E5428B
background
#FAF6FD
surface
#F4ECFA
border
#CEC7D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7C2CBD

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

Preview Lab → · Contrast checker → · Palette generator →

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