#7C2DB2#7C2DB2

#7C2DB2 is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.9% C 0.200 H 307.4°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#7C2DB2
RGBrgb(124, 45, 178)
HSLhsl(276, 60%, 44%)
HSVhsv(276, 75%, 70%)
CMYKcmyk(30.3%, 74.7%, 0%, 30.2%)
CIE-LABlab(36.70, 56.13, -55.89)
CIE-LCHlch(36.70, 79.20, 315.12°)
OKLaboklab(47.95% 0.1214 -0.1587)
OKLCHoklch(47.95% 0.2 307.4)
XYZxyz(17.2847, 9.3764, 43.0101)
Luminance0.0938 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2DB2 #63B22D
analogous
#392DB2 #7C2DB2 #B22DA5
triadic
#7C2DB2 #B27C2D #2DB27C
tetradic
#7C2DB2 #B2392D #63B22D #2DA5B2
square
#7C2DB2 #B2392D #63B22D #2DA5B2
split-complementary
#7C2DB2 #A5B22D #2DB239
monochromatic
#381450 #5A2181 #7C2DB2 #9B4BD1 #B67CDE

Accessibility & contrast

On white

7.30
#7C2DB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#7C2DB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2DB2
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2DB2#FFFFFF#000000##FFFFFF
##7C2DB21.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#0057AF
Tritanopia (blue-blind)
#734D6D
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7c2db2;
/* rgb */ color: rgb(124, 45, 178);
/* oklch */ color: oklch(47.9% 0.200 307.4);
Tailwind
colors: {
  custom: {
    50: '#a76eca',
    500: '#7c2db2',
    950: '#000000',
  },
}
SCSS
$custom: #7c2db2;
$custom-light: #a76eca;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2db2",
  "rgb": {
    "r": 124,
    "g": 45,
    "b": 178
  },
  "hsl": {
    "h": 275.639,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.47947,
    "c": 0.19985,
    "h": 307.4
  },
  "luminance": 0.09376
}

Semantic roles & 50–950 ramp

primary
#7C2DB2
secondary
#96C675
accent
#E34585
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7C2DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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