#7D2F9D#7D2F9D

#7D2F9D is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.8% C 0.177 H 314.3°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#7D2F9D
RGBrgb(125, 47, 157)
HSLhsl(283, 54%, 40%)
HSVhsv(283, 70%, 62%)
CMYKcmyk(20.4%, 70.1%, 0%, 38.4%)
CIE-LABlab(35.65, 50.88, -44.99)
CIE-LCHlch(35.65, 67.92, 318.52°)
OKLaboklab(46.76% 0.1237 -0.1267)
OKLCHoklch(46.76% 0.177 314.3)
XYZxyz(15.5587, 8.8278, 32.7761)
Luminance0.0883 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2F9D #4F9D2F
analogous
#462F9D #7D2F9D #9D2F86
triadic
#7D2F9D #9D7D2F #2F9D7D
tetradic
#7D2F9D #9D462F #4F9D2F #2F869D
square
#7D2F9D #9D462F #4F9D2F #2F869D
split-complementary
#7D2F9D #869D2F #2F9D46
monochromatic
#32133F #57216E #7D2F9D #A043C7 #B872D5

Accessibility & contrast

On white

7.59
#7D2F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#7D2F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2F9D
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2F9D#FFFFFF#000000##FFFFFF
##7D2F9D1.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A0
Deuteranopia (green-blind)
#2A569B
Tritanopia (blue-blind)
#7A4562
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7d2f9d;
/* rgb */ color: rgb(125, 47, 157);
/* oklch */ color: oklch(46.8% 0.177 314.3);
Tailwind
colors: {
  custom: {
    50: '#a66eba',
    500: '#7d2f9d',
    950: '#000000',
  },
}
SCSS
$custom: #7d2f9d;
$custom-light: #a66eba;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2f9d",
  "rgb": {
    "r": 125,
    "g": 47,
    "b": 157
  },
  "hsl": {
    "h": 282.545,
    "s": 53.922,
    "l": 40
  },
  "oklch": {
    "l": 0.4676,
    "c": 0.17707,
    "h": 314.3
  },
  "luminance": 0.08827
}

Semantic roles & 50–950 ramp

primary
#7D2F9D
secondary
#83BC6B
accent
#DD4B75
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7D2F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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