#7D2287#7D2287

#7D2287 is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.0% C 0.173 H 323.6°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#7D2287
RGBrgb(125, 34, 135)
HSLhsl(294, 60%, 33%)
HSVhsv(294, 75%, 53%)
CMYKcmyk(7.4%, 74.8%, 0%, 47.1%)
CIE-LABlab(32.38, 51.72, -36.75)
CIE-LCHlch(32.38, 63.44, 324.61°)
OKLaboklab(43.97% 0.139 -0.1025)
OKLCHoklch(43.97% 0.173 323.6)
XYZxyz(13.4023, 7.2541, 23.6112)
Luminance0.0725 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2287 #2C8722
analogous
#4A2287 #7D2287 #87225E
triadic
#7D2287 #877D22 #22877D
tetradic
#7D2287 #874A22 #2C8722 #225E87
square
#7D2287 #874A22 #2C8722 #225E87
split-complementary
#7D2287 #5E8722 #22874A
monochromatic
#220925 #501656 #7D2287 #AA2EB8 #C650D3

Accessibility & contrast

On white

8.57
#7D2287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#7D2287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2287
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2287#FFFFFF#000000##FFFFFF
##7D22871.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458A
Deuteranopia (green-blind)
#345085
Tritanopia (blue-blind)
#7F3453
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7d2287;
/* rgb */ color: rgb(125, 34, 135);
/* oklch */ color: oklch(44.0% 0.173 323.6);
Tailwind
colors: {
  custom: {
    50: '#a667aa',
    500: '#7d2287',
    950: '#000000',
  },
}
SCSS
$custom: #7d2287;
$custom-light: #a667aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2287",
  "rgb": {
    "r": 125,
    "g": 34,
    "b": 135
  },
  "hsl": {
    "h": 294.059,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.43967,
    "c": 0.1727,
    "h": 323.6
  },
  "luminance": 0.07253
}

Semantic roles & 50–950 ramp

primary
#7D2287
secondary
#59B74E
accent
#E34555
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7D2287

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

Preview Lab → · Contrast checker → · Palette generator →

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