#7D2D9E#7D2D9E

#7D2D9E is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.6% C 0.181 H 314.1°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#7D2D9E
RGBrgb(125, 45, 158)
HSLhsl(282, 56%, 40%)
HSVhsv(282, 72%, 62%)
CMYKcmyk(20.9%, 71.5%, 0%, 38%)
CIE-LABlab(35.41, 51.96, -45.97)
CIE-LCHlch(35.41, 69.38, 318.50°)
OKLaboklab(46.61% 0.1258 -0.1296)
OKLCHoklch(46.61% 0.181 314.1)
XYZxyz(15.5663, 8.7059, 33.2015)
Luminance0.0871 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2D9E #4E9E2D
analogous
#452D9E #7D2D9E #9E2D87
triadic
#7D2D9E #9E7D2D #2D9E7D
tetradic
#7D2D9E #9E452D #4E9E2D #2D879E
square
#7D2D9E #9E452D #4E9E2D #2D879E
split-complementary
#7D2D9E #879E2D #2D9E45
monochromatic
#32123F #571F6E #7D2D9E #A140C9 #B86FD6

Accessibility & contrast

On white

7.66
#7D2D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#7D2D9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2D9E
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2D9E#FFFFFF#000000##FFFFFF
##7D2D9E1.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA1
Deuteranopia (green-blind)
#27559B
Tritanopia (blue-blind)
#7A4562
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7d2d9e;
/* rgb */ color: rgb(125, 45, 158);
/* oklch */ color: oklch(46.6% 0.181 314.1);
Tailwind
colors: {
  custom: {
    50: '#a66dbb',
    500: '#7d2d9e',
    950: '#000000',
  },
}
SCSS
$custom: #7d2d9e;
$custom-light: #a66dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2d9e",
  "rgb": {
    "r": 125,
    "g": 45,
    "b": 158
  },
  "hsl": {
    "h": 282.478,
    "s": 55.665,
    "l": 39.804
  },
  "oklch": {
    "l": 0.46611,
    "c": 0.18058,
    "h": 314.1
  },
  "luminance": 0.08705
}

Semantic roles & 50–950 ramp

primary
#7D2D9E
secondary
#82BD69
accent
#DF4975
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7D2D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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