#7C2DB5#7C2DB5

#7C2DB5 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.2% C 0.203 H 306.6°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#7C2DB5
RGBrgb(124, 45, 181)
HSLhsl(275, 60%, 44%)
HSVhsv(275, 75%, 71%)
CMYKcmyk(31.5%, 75.1%, 0%, 29%)
CIE-LABlab(36.93, 56.80, -57.30)
CIE-LCHlch(36.93, 80.68, 314.75°)
OKLaboklab(48.18% 0.1208 -0.1629)
OKLCHoklch(48.18% 0.203 306.6)
XYZxyz(17.5892, 9.4982, 44.6138)
Luminance0.0950 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2DB5 #66B52D
analogous
#382DB5 #7C2DB5 #B52DAA
triadic
#7C2DB5 #B57C2D #2DB57C
tetradic
#7C2DB5 #B5382D #66B52D #2DAAB5
square
#7C2DB5 #B5382D #66B52D #2DAAB5
split-complementary
#7C2DB5 #AAB52D #2DB538
monochromatic
#391553 #5A2184 #7C2DB5 #9A4DD3 #B67EDF

Accessibility & contrast

On white

7.24
#7C2DB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#7C2DB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2DB5
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2DB5#FFFFFF#000000##FFFFFF
##7C2DB51.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B9
Deuteranopia (green-blind)
#0057B2
Tritanopia (blue-blind)
#724E6F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7c2db5;
/* rgb */ color: rgb(124, 45, 181);
/* oklch */ color: oklch(48.2% 0.203 306.6);
Tailwind
colors: {
  custom: {
    50: '#a76ecc',
    500: '#7c2db5',
    950: '#000000',
  },
}
SCSS
$custom: #7c2db5;
$custom-light: #a76ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2db5",
  "rgb": {
    "r": 124,
    "g": 45,
    "b": 181
  },
  "hsl": {
    "h": 274.853,
    "s": 60.177,
    "l": 44.314
  },
  "oklch": {
    "l": 0.48178,
    "c": 0.20281,
    "h": 306.6
  },
  "luminance": 0.09498
}

Semantic roles & 50–950 ramp

primary
#7C2DB5
secondary
#98C776
accent
#E34487
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7C2DB5

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

Preview Lab → · Contrast checker → · Palette generator →

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