#7D2DB9#7D2DB9

#7D2DB9 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.6% C 0.207 H 305.9°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#7D2DB9
RGBrgb(125, 45, 185)
HSLhsl(274, 61%, 45%)
HSVhsv(274, 76%, 73%)
CMYKcmyk(32.4%, 75.7%, 0%, 27.5%)
CIE-LABlab(37.37, 57.88, -58.93)
CIE-LCHlch(37.37, 82.60, 314.49°)
OKLaboklab(48.62% 0.1214 -0.1677)
OKLCHoklch(48.62% 0.207 305.9)
XYZxyz(18.1509, 9.7397, 46.8133)
Luminance0.0974 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2DB9 #69B92D
analogous
#372DB9 #7D2DB9 #B92DAF
triadic
#7D2DB9 #B97D2D #2DB97D
tetradic
#7D2DB9 #B9372D #69B92D #2DAFB9
square
#7D2DB9 #B9372D #69B92D #2DAFB9
split-complementary
#7D2DB9 #AFB92D #2DB937
monochromatic
#3A1557 #5C2188 #7D2DB9 #9B4FD4 #B780E0

Accessibility & contrast

On white

7.12
#7D2DB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#7D2DB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2DB9
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2DB9#FFFFFF#000000##FFFFFF
##7D2DB91.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BD
Deuteranopia (green-blind)
#0058B6
Tritanopia (blue-blind)
#725071
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7d2db9;
/* rgb */ color: rgb(125, 45, 185);
/* oklch */ color: oklch(48.6% 0.207 305.9);
Tailwind
colors: {
  custom: {
    50: '#a86ecf',
    500: '#7d2db9',
    950: '#000000',
  },
}
SCSS
$custom: #7d2db9;
$custom-light: #a86ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2db9",
  "rgb": {
    "r": 125,
    "g": 45,
    "b": 185
  },
  "hsl": {
    "h": 274.286,
    "s": 60.87,
    "l": 45.098
  },
  "oklch": {
    "l": 0.48617,
    "c": 0.20697,
    "h": 305.9
  },
  "luminance": 0.0974
}

Semantic roles & 50–950 ramp

primary
#7D2DB9
secondary
#9BC979
accent
#E44488
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7D2DB9

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

Preview Lab → · Contrast checker → · Palette generator →

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