#7D2DB5#7D2DB5

#7D2DB5 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.3% C 0.203 H 307.0°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#7D2DB5
RGBrgb(125, 45, 181)
HSLhsl(275, 60%, 44%)
HSVhsv(275, 75%, 71%)
CMYKcmyk(30.9%, 75.1%, 0%, 29%)
CIE-LABlab(37.07, 56.98, -57.06)
CIE-LCHlch(37.07, 80.64, 314.96°)
OKLaboklab(48.31% 0.1222 -0.1622)
OKLCHoklch(48.31% 0.203 307)
XYZxyz(17.7345, 9.5732, 44.6206)
Luminance0.0957 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2DB5 #65B52D
analogous
#392DB5 #7D2DB5 #B52DA9
triadic
#7D2DB5 #B57D2D #2DB57D
tetradic
#7D2DB5 #B5392D #65B52D #2DA9B5
square
#7D2DB5 #B5392D #65B52D #2DA9B5
split-complementary
#7D2DB5 #A9B52D #2DB539
monochromatic
#391553 #5B2184 #7D2DB5 #9B4DD3 #B77EDF

Accessibility & contrast

On white

7.21
#7D2DB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#7D2DB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2DB5
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2DB5#FFFFFF#000000##FFFFFF
##7D2DB51.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B9
Deuteranopia (green-blind)
#0058B2
Tritanopia (blue-blind)
#734E6F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7d2db5;
/* rgb */ color: rgb(125, 45, 181);
/* oklch */ color: oklch(48.3% 0.203 307.0);
Tailwind
colors: {
  custom: {
    50: '#a86ecc',
    500: '#7d2db5',
    950: '#000000',
  },
}
SCSS
$custom: #7d2db5;
$custom-light: #a86ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2db5",
  "rgb": {
    "r": 125,
    "g": 45,
    "b": 181
  },
  "hsl": {
    "h": 275.294,
    "s": 60.177,
    "l": 44.314
  },
  "oklch": {
    "l": 0.48305,
    "c": 0.20305,
    "h": 307
  },
  "luminance": 0.09573
}

Semantic roles & 50–950 ramp

primary
#7D2DB5
secondary
#98C776
accent
#E34486
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7D2DB5

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

Preview Lab → · Contrast checker → · Palette generator →

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