#7C2DBD#7C2DBD

#7C2DBD is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.8% C 0.211 H 304.4°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#7C2DBD
RGBrgb(124, 45, 189)
HSLhsl(273, 62%, 46%)
HSVhsv(273, 76%, 74%)
CMYKcmyk(34.4%, 76.2%, 0%, 25.9%)
CIE-LABlab(37.55, 58.62, -61.01)
CIE-LCHlch(37.55, 84.60, 313.85°)
OKLaboklab(48.81% 0.1191 -0.1738)
OKLCHoklch(48.81% 0.211 304.4)
XYZxyz(18.4338, 9.8361, 49.0617)
Luminance0.0984 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2DBD #6EBD2D
analogous
#342DBD #7C2DBD #BD2DB6
triadic
#7C2DBD #BD7C2D #2DBD7C
tetradic
#7C2DBD #BD342D #6EBD2D #2DB6BD
square
#7C2DBD #BD342D #6EBD2D #2DB6BD
split-complementary
#7C2DBD #B6BD2D #2DBD34
monochromatic
#3B155A #5C218C #7C2DBD #9A52D6 #B783E1

Accessibility & contrast

On white

7.08
#7C2DBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#7C2DBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2DBD
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2DBD#FFFFFF#000000##FFFFFF
##7C2DBD1.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c2dbd;
/* rgb */ color: rgb(124, 45, 189);
/* oklch */ color: oklch(48.8% 0.211 304.4);
Tailwind
colors: {
  custom: {
    50: '#a86ed2',
    500: '#7c2dbd',
    950: '#000000',
  },
}
SCSS
$custom: #7c2dbd;
$custom-light: #a86ed2;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2dbd",
  "rgb": {
    "r": 124,
    "g": 45,
    "b": 189
  },
  "hsl": {
    "h": 272.917,
    "s": 61.538,
    "l": 45.882
  },
  "oklch": {
    "l": 0.48808,
    "c": 0.21068,
    "h": 304.4
  },
  "luminance": 0.09836
}

Semantic roles & 50–950 ramp

primary
#7C2DBD
secondary
#9FCB7B
accent
#E5438C
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7C2DBD

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

Preview Lab → · Contrast checker → · Palette generator →

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