#7D2DB7#7D2DB7

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

Color values

HEX#7D2DB7
RGBrgb(125, 45, 183)
HSLhsl(275, 61%, 45%)
HSVhsv(275, 75%, 72%)
CMYKcmyk(31.7%, 75.4%, 0%, 28.2%)
CIE-LABlab(37.22, 57.43, -58.00)
CIE-LCHlch(37.22, 81.62, 314.72°)
OKLaboklab(48.46% 0.1218 -0.1649)
OKLCHoklch(48.46% 0.205 306.4)
XYZxyz(17.9412, 9.6558, 45.7092)
Luminance0.0966 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2DB7 #67B72D
analogous
#382DB7 #7D2DB7 #B72DAC
triadic
#7D2DB7 #B77D2D #2DB77D
tetradic
#7D2DB7 #B7382D #67B72D #2DACB7
square
#7D2DB7 #B7382D #67B72D #2DACB7
split-complementary
#7D2DB7 #ACB72D #2DB738
monochromatic
#3A1555 #5B2186 #7D2DB7 #9B4ED3 #B77FDF

Accessibility & contrast

On white

7.16
#7D2DB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#7D2DB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2DB7
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2DB7#FFFFFF#000000##FFFFFF
##7D2DB71.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BB
Deuteranopia (green-blind)
#0058B4
Tritanopia (blue-blind)
#734F70
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7d2db7;
/* rgb */ color: rgb(125, 45, 183);
/* oklch */ color: oklch(48.5% 0.205 306.4);
Tailwind
colors: {
  custom: {
    50: '#a86ecd',
    500: '#7d2db7',
    950: '#000000',
  },
}
SCSS
$custom: #7d2db7;
$custom-light: #a86ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2db7",
  "rgb": {
    "r": 125,
    "g": 45,
    "b": 183
  },
  "hsl": {
    "h": 274.783,
    "s": 60.526,
    "l": 44.706
  },
  "oklch": {
    "l": 0.4846,
    "c": 0.20502,
    "h": 306.4
  },
  "luminance": 0.09656
}

Semantic roles & 50–950 ramp

primary
#7D2DB7
secondary
#99C878
accent
#E44487
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7D2DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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