#7D2DB8#7D2DB8

#7D2DB8 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.5% C 0.206 H 306.2°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#7D2DB8
RGBrgb(125, 45, 184)
HSLhsl(275, 61%, 45%)
HSVhsv(275, 76%, 72%)
CMYKcmyk(32.1%, 75.5%, 0%, 27.8%)
CIE-LABlab(37.29, 57.66, -58.47)
CIE-LCHlch(37.29, 82.11, 314.60°)
OKLaboklab(48.54% 0.1216 -0.1663)
OKLCHoklch(48.54% 0.206 306.2)
XYZxyz(18.0457, 9.6976, 46.2593)
Luminance0.0970 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2DB8 #68B82D
analogous
#372DB8 #7D2DB8 #B82DAE
triadic
#7D2DB8 #B87D2D #2DB87D
tetradic
#7D2DB8 #B8372D #68B82D #2DAEB8
square
#7D2DB8 #B8372D #68B82D #2DAEB8
split-complementary
#7D2DB8 #AEB82D #2DB837
monochromatic
#3A1556 #5C2187 #7D2DB8 #9B4ED4 #B780E0

Accessibility & contrast

On white

7.14
#7D2DB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#7D2DB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2DB8
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2DB8#FFFFFF#000000##FFFFFF
##7D2DB81.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BC
Deuteranopia (green-blind)
#0058B5
Tritanopia (blue-blind)
#724F71
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7d2db8;
/* rgb */ color: rgb(125, 45, 184);
/* oklch */ color: oklch(48.5% 0.206 306.2);
Tailwind
colors: {
  custom: {
    50: '#a86ece',
    500: '#7d2db8',
    950: '#000000',
  },
}
SCSS
$custom: #7d2db8;
$custom-light: #a86ece;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2db8",
  "rgb": {
    "r": 125,
    "g": 45,
    "b": 184
  },
  "hsl": {
    "h": 274.532,
    "s": 60.699,
    "l": 44.902
  },
  "oklch": {
    "l": 0.48538,
    "c": 0.206,
    "h": 306.2
  },
  "luminance": 0.09697
}

Semantic roles & 50–950 ramp

primary
#7D2DB8
secondary
#9AC978
accent
#E44488
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7D2DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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