#7D2DB6#7D2DB6

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

Color values

HEX#7D2DB6
RGBrgb(125, 45, 182)
HSLhsl(275, 60%, 45%)
HSVhsv(275, 75%, 71%)
CMYKcmyk(31.3%, 75.3%, 0%, 28.6%)
CIE-LABlab(37.14, 57.21, -57.53)
CIE-LCHlch(37.14, 81.13, 314.84°)
OKLaboklab(48.38% 0.122 -0.1635)
OKLCHoklch(48.38% 0.204 306.7)
XYZxyz(17.8375, 9.6143, 45.1630)
Luminance0.0961 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2DB6 #66B62D
analogous
#382DB6 #7D2DB6 #B62DAB
triadic
#7D2DB6 #B67D2D #2DB67D
tetradic
#7D2DB6 #B6382D #66B62D #2DABB6
square
#7D2DB6 #B6382D #66B62D #2DABB6
split-complementary
#7D2DB6 #ABB62D #2DB638
monochromatic
#3A1554 #5B2185 #7D2DB6 #9B4DD3 #B77EDF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7D2DB6#FFFFFF#000000##FFFFFF
##7D2DB61.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)
#0055BA
Deuteranopia (green-blind)
#0058B3
Tritanopia (blue-blind)
#734F70
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7d2db6;
/* rgb */ color: rgb(125, 45, 182);
/* oklch */ color: oklch(48.4% 0.204 306.7);
Tailwind
colors: {
  custom: {
    50: '#a86ecd',
    500: '#7d2db6',
    950: '#000000',
  },
}
SCSS
$custom: #7d2db6;
$custom-light: #a86ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2db6",
  "rgb": {
    "r": 125,
    "g": 45,
    "b": 182
  },
  "hsl": {
    "h": 275.036,
    "s": 60.352,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48383,
    "c": 0.20403,
    "h": 306.7
  },
  "luminance": 0.09614
}

Semantic roles & 50–950 ramp

primary
#7D2DB6
secondary
#99C877
accent
#E34487
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7D2DB6

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

Preview Lab → · Contrast checker → · Palette generator →

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