#7C2DB8#7C2DB8

#7C2DB8 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.4% C 0.206 H 305.7°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#7C2DB8
RGBrgb(124, 45, 184)
HSLhsl(274, 61%, 45%)
HSVhsv(274, 76%, 72%)
CMYKcmyk(32.6%, 75.5%, 0%, 27.8%)
CIE-LABlab(37.16, 57.48, -58.70)
CIE-LCHlch(37.16, 82.15, 314.40°)
OKLaboklab(48.41% 0.1202 -0.167)
OKLCHoklch(48.41% 0.206 305.7)
XYZxyz(17.9004, 9.6227, 46.2525)
Luminance0.0962 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2DB8 #69B82D
analogous
#372DB8 #7C2DB8 #B82DAE
triadic
#7C2DB8 #B87C2D #2DB87C
tetradic
#7C2DB8 #B8372D #69B82D #2DAEB8
square
#7C2DB8 #B8372D #69B82D #2DAEB8
split-complementary
#7C2DB8 #AEB82D #2DB837
monochromatic
#3A1556 #5B2187 #7C2DB8 #9A4ED4 #B680E0

Accessibility & contrast

On white

7.18
#7C2DB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#7C2DB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2DB8
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2DB8#FFFFFF#000000##FFFFFF
##7C2DB81.007.182.927.18
#FFFFFF7.181.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BC
Deuteranopia (green-blind)
#0058B5
Tritanopia (blue-blind)
#715071
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7c2db8;
/* rgb */ color: rgb(124, 45, 184);
/* oklch */ color: oklch(48.4% 0.206 305.7);
Tailwind
colors: {
  custom: {
    50: '#a76ece',
    500: '#7c2db8',
    950: '#000000',
  },
}
SCSS
$custom: #7c2db8;
$custom-light: #a76ece;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2db8",
  "rgb": {
    "r": 124,
    "g": 45,
    "b": 184
  },
  "hsl": {
    "h": 274.101,
    "s": 60.699,
    "l": 44.902
  },
  "oklch": {
    "l": 0.48412,
    "c": 0.20575,
    "h": 305.7
  },
  "luminance": 0.09623
}

Semantic roles & 50–950 ramp

primary
#7C2DB8
secondary
#9BC978
accent
#E44489
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7C2DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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