#7D2CC8#7D2CC8

#7D2CC8 is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.7% C 0.223 H 302.2°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#7D2CC8
RGBrgb(125, 44, 200)
HSLhsl(271, 64%, 48%)
HSVhsv(271, 78%, 78%)
CMYKcmyk(37.5%, 78%, 0%, 21.6%)
CIE-LABlab(38.43, 61.69, -66.00)
CIE-LCHlch(38.43, 90.34, 313.07°)
OKLaboklab(49.73% 0.1186 -0.1884)
OKLCHoklch(49.73% 0.223 302.2)
XYZxyz(19.7809, 10.3314, 55.5844)
Luminance0.1033 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2CC8 #77C82C
analogous
#2F2CC8 #7D2CC8 #C82CC5
triadic
#7D2CC8 #C87D2C #2CC87D
tetradic
#7D2CC8 #C82F2C #77C82C #2CC5C8
square
#7D2CC8 #C82F2C #77C82C #2CC5C8
split-complementary
#7D2CC8 #C5C82C #2CC82F
monochromatic
#3E1664 #5E2196 #7D2CC8 #9B57DA #B989E5

Accessibility & contrast

On white

6.85
#7D2CC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#7D2CC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D2CC8
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2CC8#FFFFFF#000000##FFFFFF
##7D2CC81.006.853.076.85
#FFFFFF6.851.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CC
Deuteranopia (green-blind)
#005AC5
Tritanopia (blue-blind)
#6D567A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7d2cc8;
/* rgb */ color: rgb(125, 44, 200);
/* oklch */ color: oklch(49.7% 0.223 302.2);
Tailwind
colors: {
  custom: {
    50: '#a96fda',
    500: '#7d2cc8',
    950: '#000000',
  },
}
SCSS
$custom: #7d2cc8;
$custom-light: #a96fda;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2cc8",
  "rgb": {
    "r": 125,
    "g": 44,
    "b": 200
  },
  "hsl": {
    "h": 271.154,
    "s": 63.934,
    "l": 47.843
  },
  "oklch": {
    "l": 0.49731,
    "c": 0.22263,
    "h": 302.2
  },
  "luminance": 0.10331
}

Semantic roles & 50–950 ramp

primary
#7D2CC8
secondary
#A6CF81
accent
#E74191
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7D2CC8

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

Preview Lab → · Contrast checker → · Palette generator →

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