#7C2DB3#7C2DB3

#7C2DB3 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.0% C 0.201 H 307.1°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#7C2DB3
RGBrgb(124, 45, 179)
HSLhsl(275, 60%, 44%)
HSVhsv(275, 75%, 70%)
CMYKcmyk(30.7%, 74.9%, 0%, 29.8%)
CIE-LABlab(36.77, 56.35, -56.36)
CIE-LCHlch(36.77, 79.70, 315.00°)
OKLaboklab(48.02% 0.1212 -0.1601)
OKLCHoklch(48.02% 0.201 307.1)
XYZxyz(17.3855, 9.4167, 43.5408)
Luminance0.0942 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2DB3 #64B32D
analogous
#392DB3 #7C2DB3 #B32DA7
triadic
#7C2DB3 #B37C2D #2DB37C
tetradic
#7C2DB3 #B3392D #64B32D #2DA7B3
square
#7C2DB3 #B3392D #64B32D #2DA7B3
split-complementary
#7C2DB3 #A7B32D #2DB339
monochromatic
#381451 #5A2182 #7C2DB3 #9B4BD2 #B67CDE

Accessibility & contrast

On white

7.28
#7C2DB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C2DB3
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2DB3#FFFFFF#000000##FFFFFF
##7C2DB31.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B7
Deuteranopia (green-blind)
#0057B0
Tritanopia (blue-blind)
#734D6E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7c2db3;
/* rgb */ color: rgb(124, 45, 179);
/* oklch */ color: oklch(48.0% 0.201 307.1);
Tailwind
colors: {
  custom: {
    50: '#a76ecb',
    500: '#7c2db3',
    950: '#000000',
  },
}
SCSS
$custom: #7c2db3;
$custom-light: #a76ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2db3",
  "rgb": {
    "r": 124,
    "g": 45,
    "b": 179
  },
  "hsl": {
    "h": 275.373,
    "s": 59.821,
    "l": 43.922
  },
  "oklch": {
    "l": 0.48024,
    "c": 0.20084,
    "h": 307.1
  },
  "luminance": 0.09417
}

Semantic roles & 50–950 ramp

primary
#7C2DB3
secondary
#97C775
accent
#E34586
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7C2DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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