#7D2B87#7D2B87

#7D2B87 is a dark, vivid purple. Relative luminance 0.078; OKLCH L 44.9% C 0.161 H 323.2°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#7D2B87
RGBrgb(125, 43, 135)
HSLhsl(293, 52%, 35%)
HSVhsv(293, 68%, 53%)
CMYKcmyk(7.4%, 68.1%, 0%, 47.1%)
CIE-LABlab(33.64, 48.14, -34.73)
CIE-LCHlch(33.64, 59.36, 324.19°)
OKLaboklab(44.87% 0.1292 -0.0967)
OKLCHoklch(44.87% 0.161 323.2)
XYZxyz(13.6941, 7.8378, 23.7085)
Luminance0.0784 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2B87 #35872B
analogous
#4F2B87 #7D2B87 #872B63
triadic
#7D2B87 #877D2B #2B877D
tetradic
#7D2B87 #874F2B #35872B #2B6387
square
#7D2B87 #874F2B #35872B #2B6387
split-complementary
#7D2B87 #63872B #2B874F
monochromatic
#270D2A #521C59 #7D2B87 #A83AB5 #C160CC

Accessibility & contrast

On white

8.18
#7D2B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7D2B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2B87
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2B87#FFFFFF#000000##FFFFFF
##7D2B871.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14498A
Deuteranopia (green-blind)
#395285
Tritanopia (blue-blind)
#7F3A55
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7d2b87;
/* rgb */ color: rgb(125, 43, 135);
/* oklch */ color: oklch(44.9% 0.161 323.2);
Tailwind
colors: {
  custom: {
    50: '#a66baa',
    500: '#7d2b87',
    950: '#000000',
  },
}
SCSS
$custom: #7d2b87;
$custom-light: #a66baa;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2b87",
  "rgb": {
    "r": 125,
    "g": 43,
    "b": 135
  },
  "hsl": {
    "h": 293.478,
    "s": 51.685,
    "l": 34.902
  },
  "oklch": {
    "l": 0.44873,
    "c": 0.16139,
    "h": 323.2
  },
  "luminance": 0.07837
}

Semantic roles & 50–950 ramp

primary
#7D2B87
secondary
#65B25B
accent
#DB4D5C
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7D2B87

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

Preview Lab → · Contrast checker → · Palette generator →

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