#7D2C94#7D2C94

#7D2C94 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.8% C 0.172 H 317.8°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#7D2C94
RGBrgb(125, 44, 148)
HSLhsl(287, 54%, 38%)
HSVhsv(287, 70%, 58%)
CMYKcmyk(15.5%, 70.3%, 0%, 42%)
CIE-LABlab(34.60, 50.30, -41.20)
CIE-LCHlch(34.60, 65.02, 320.68°)
OKLaboklab(45.82% 0.1277 -0.1156)
OKLCHoklch(45.82% 0.172 317.8)
XYZxyz(14.7027, 8.3001, 28.8388)
Luminance0.0830 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2C94 #43942C
analogous
#492C94 #7D2C94 #942C77
triadic
#7D2C94 #947D2C #2C947D
tetradic
#7D2C94 #94492C #43942C #2C7794
square
#7D2C94 #94492C #43942C #2C7794
split-complementary
#7D2C94 #77942C #2C9449
monochromatic
#2D1036 #551E65 #7D2C94 #A53AC3 #BB68D2

Accessibility & contrast

On white

7.90
#7D2C94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#7D2C94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2C94
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2C94#FFFFFF#000000##FFFFFF
##7D2C941.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C97
Deuteranopia (green-blind)
#305492
Tritanopia (blue-blind)
#7C405D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7d2c94;
/* rgb */ color: rgb(125, 44, 148);
/* oklch */ color: oklch(45.8% 0.172 317.8);
Tailwind
colors: {
  custom: {
    50: '#a66cb4',
    500: '#7d2c94',
    950: '#000000',
  },
}
SCSS
$custom: #7d2c94;
$custom-light: #a66cb4;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2c94",
  "rgb": {
    "r": 125,
    "g": 44,
    "b": 148
  },
  "hsl": {
    "h": 286.731,
    "s": 54.167,
    "l": 37.647
  },
  "oklch": {
    "l": 0.4582,
    "c": 0.17224,
    "h": 317.8
  },
  "luminance": 0.08299
}

Semantic roles & 50–950 ramp

primary
#7D2C94
secondary
#76B963
accent
#DE4A6B
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7D2C94

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

Preview Lab → · Contrast checker → · Palette generator →

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