#7D2E9C#7D2E9C

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

Color values

HEX#7D2E9C
RGBrgb(125, 46, 156)
HSLhsl(283, 54%, 40%)
HSVhsv(283, 71%, 61%)
CMYKcmyk(19.9%, 70.5%, 0%, 38.8%)
CIE-LABlab(35.43, 51.11, -44.74)
CIE-LCHlch(35.43, 67.92, 318.80°)
OKLaboklab(46.58% 0.1249 -0.126)
OKLCHoklch(46.58% 0.177 314.8)
XYZxyz(15.4342, 8.7148, 32.3151)
Luminance0.0871 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2E9C #4D9C2E
analogous
#462E9C #7D2E9C #9C2E84
triadic
#7D2E9C #9C7D2E #2E9C7D
tetradic
#7D2E9C #9C462E #4D9C2E #2E849C
square
#7D2E9C #9C462E #4D9C2E #2E849C
split-complementary
#7D2E9C #849C2E #2E9C46
monochromatic
#31123D #57206D #7D2E9C #A140C7 #B870D5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7D2E9C#FFFFFF#000000##FFFFFF
##7D2E9C1.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)
#004F9F
Deuteranopia (green-blind)
#2A559A
Tritanopia (blue-blind)
#7A4462
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7d2e9c;
/* rgb */ color: rgb(125, 46, 156);
/* oklch */ color: oklch(46.6% 0.177 314.8);
Tailwind
colors: {
  custom: {
    50: '#a66eba',
    500: '#7d2e9c',
    950: '#000000',
  },
}
SCSS
$custom: #7d2e9c;
$custom-light: #a66eba;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2e9c",
  "rgb": {
    "r": 125,
    "g": 46,
    "b": 156
  },
  "hsl": {
    "h": 283.091,
    "s": 54.455,
    "l": 39.608
  },
  "oklch": {
    "l": 0.4658,
    "c": 0.17738,
    "h": 314.8
  },
  "luminance": 0.08714
}

Semantic roles & 50–950 ramp

primary
#7D2E9C
secondary
#81BC6A
accent
#DE4A74
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7D2E9C

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

Preview Lab → · Contrast checker → · Palette generator →

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