#7C2DAB#7C2DAB

#7C2DAB is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.4% C 0.193 H 309.5°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#7C2DAB
RGBrgb(124, 45, 171)
HSLhsl(278, 58%, 42%)
HSVhsv(278, 74%, 67%)
CMYKcmyk(27.5%, 73.7%, 0%, 32.9%)
CIE-LABlab(36.18, 54.57, -52.56)
CIE-LCHlch(36.18, 75.76, 316.08°)
OKLaboklab(47.42% 0.1227 -0.149)
OKLCHoklch(47.42% 0.193 309.5)
XYZxyz(16.5998, 9.1025, 39.4027)
Luminance0.0910 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2DAB #5CAB2D
analogous
#3D2DAB #7C2DAB #AB2D9B
triadic
#7C2DAB #AB7C2D #2DAB7C
tetradic
#7C2DAB #AB3D2D #5CAB2D #2D9BAB
square
#7C2DAB #AB3D2D #5CAB2D #2D9BAB
split-complementary
#7C2DAB #9BAB2D #2DAB3D
monochromatic
#36144A #59207B #7C2DAB #9C47CE #B677DB

Accessibility & contrast

On white

7.45
#7C2DAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#7C2DAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2DAB
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2DAB#FFFFFF#000000##FFFFFF
##7C2DAB1.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AF
Deuteranopia (green-blind)
#0C56A8
Tritanopia (blue-blind)
#754A6A
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7c2dab;
/* rgb */ color: rgb(124, 45, 171);
/* oklch */ color: oklch(47.4% 0.193 309.5);
Tailwind
colors: {
  custom: {
    50: '#a66ec5',
    500: '#7c2dab',
    950: '#000000',
  },
}
SCSS
$custom: #7c2dab;
$custom-light: #a66ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2dab",
  "rgb": {
    "r": 124,
    "g": 45,
    "b": 171
  },
  "hsl": {
    "h": 277.619,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.47417,
    "c": 0.19296,
    "h": 309.5
  },
  "luminance": 0.09102
}

Semantic roles & 50–950 ramp

primary
#7C2DAB
secondary
#8FC371
accent
#E24680
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7C2DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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