#7C2DB6#7C2DB6

#7C2DB6 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.3% C 0.204 H 306.3°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#7C2DB6
RGBrgb(124, 45, 182)
HSLhsl(275, 60%, 45%)
HSVhsv(275, 75%, 71%)
CMYKcmyk(31.9%, 75.3%, 0%, 28.6%)
CIE-LABlab(37.00, 57.03, -57.76)
CIE-LCHlch(37.00, 81.17, 314.63°)
OKLaboklab(48.26% 0.1206 -0.1643)
OKLCHoklch(48.26% 0.204 306.3)
XYZxyz(17.6922, 9.5394, 45.1561)
Luminance0.0954 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2DB6 #67B62D
analogous
#382DB6 #7C2DB6 #B62DAB
triadic
#7C2DB6 #B67C2D #2DB67C
tetradic
#7C2DB6 #B6382D #67B62D #2DABB6
square
#7C2DB6 #B6382D #67B62D #2DABB6
split-complementary
#7C2DB6 #ABB62D #2DB638
monochromatic
#391554 #5B2185 #7C2DB6 #9A4DD3 #B67EDF

Accessibility & contrast

On white

7.22
#7C2DB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#7C2DB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2DB6
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2DB6#FFFFFF#000000##FFFFFF
##7C2DB61.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c2db6;
/* rgb */ color: rgb(124, 45, 182);
/* oklch */ color: oklch(48.3% 0.204 306.3);
Tailwind
colors: {
  custom: {
    50: '#a76ecd',
    500: '#7c2db6',
    950: '#000000',
  },
}
SCSS
$custom: #7c2db6;
$custom-light: #a76ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2db6",
  "rgb": {
    "r": 124,
    "g": 45,
    "b": 182
  },
  "hsl": {
    "h": 274.599,
    "s": 60.352,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48256,
    "c": 0.20378,
    "h": 306.3
  },
  "luminance": 0.09539
}

Semantic roles & 50–950 ramp

primary
#7C2DB6
secondary
#99C877
accent
#E34488
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7C2DB6

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

Preview Lab → · Contrast checker → · Palette generator →

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