#7C2DB0#7C2DB0

#7C2DB0 is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.8% C 0.198 H 308.0°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#7C2DB0
RGBrgb(124, 45, 176)
HSLhsl(276, 59%, 43%)
HSVhsv(276, 74%, 69%)
CMYKcmyk(29.5%, 74.4%, 0%, 31%)
CIE-LABlab(36.55, 55.68, -54.94)
CIE-LCHlch(36.55, 78.22, 315.38°)
OKLaboklab(47.79% 0.1218 -0.156)
OKLCHoklch(47.79% 0.198 308)
XYZxyz(17.0854, 9.2967, 41.9603)
Luminance0.0930 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2DB0 #61B02D
analogous
#3A2DB0 #7C2DB0 #B02DA2
triadic
#7C2DB0 #B07C2D #2DB07C
tetradic
#7C2DB0 #B03A2D #61B02D #2DA2B0
square
#7C2DB0 #B03A2D #61B02D #2DA2B0
split-complementary
#7C2DB0 #A2B02D #2DB03A
monochromatic
#37144F #5A217F #7C2DB0 #9B4AD1 #B67ADD

Accessibility & contrast

On white

7.34
#7C2DB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#7C2DB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2DB0
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2DB0#FFFFFF#000000##FFFFFF
##7C2DB01.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B4
Deuteranopia (green-blind)
#0057AD
Tritanopia (blue-blind)
#744C6C
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7c2db0;
/* rgb */ color: rgb(124, 45, 176);
/* oklch */ color: oklch(47.8% 0.198 308.0);
Tailwind
colors: {
  custom: {
    50: '#a76ec8',
    500: '#7c2db0',
    950: '#000000',
  },
}
SCSS
$custom: #7c2db0;
$custom-light: #a76ec8;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2db0",
  "rgb": {
    "r": 124,
    "g": 45,
    "b": 176
  },
  "hsl": {
    "h": 276.183,
    "s": 59.276,
    "l": 43.333
  },
  "oklch": {
    "l": 0.47794,
    "c": 0.19788,
    "h": 308
  },
  "luminance": 0.09296
}

Semantic roles & 50–950 ramp

primary
#7C2DB0
secondary
#94C573
accent
#E24584
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7C2DB0

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

Preview Lab → · Contrast checker → · Palette generator →

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