#7D237A#7D237A

#7D237A is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.3% C 0.160 H 329.3°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#7D237A
RGBrgb(125, 35, 122)
HSLhsl(302, 56%, 31%)
HSVhsv(302, 72%, 49%)
CMYKcmyk(0%, 72%, 2.4%, 51%)
CIE-LABlab(31.73, 49.00, -29.64)
CIE-LCHlch(31.73, 57.27, 328.83°)
OKLaboklab(43.26% 0.1381 -0.0818)
OKLCHoklch(43.26% 0.16 329.3)
XYZxyz(12.5712, 6.9681, 19.0914)
Luminance0.0697 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D237A #237D26
analogous
#53237D #7D237A #7D234D
triadic
#7D237A #7A7D23 #237A7D
tetradic
#7D237A #7D5323 #237D26 #234D7D
square
#7D237A #7D5323 #237D26 #234D7D
split-complementary
#7D237A #4D7D23 #237D53
monochromatic
#1D081D #4D164B #7D237A #AD30A9 #CD4DC9

Accessibility & contrast

On white

8.77
#7D237A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#7D237A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D237A
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D237A#FFFFFF#000000##FFFFFF
##7D237A1.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18437C
Deuteranopia (green-blind)
#3C4F78
Tritanopia (blue-blind)
#822F4C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7d237a;
/* rgb */ color: rgb(125, 35, 122);
/* oklch */ color: oklch(43.3% 0.160 329.3);
Tailwind
colors: {
  custom: {
    50: '#a667a1',
    500: '#7d237a',
    950: '#000000',
  },
}
SCSS
$custom: #7d237a;
$custom-light: #a667a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7d237a",
  "rgb": {
    "r": 125,
    "g": 35,
    "b": 122
  },
  "hsl": {
    "h": 302,
    "s": 56.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.43256,
    "c": 0.16049,
    "h": 329.3
  },
  "luminance": 0.06967
}

Semantic roles & 50–950 ramp

primary
#7D237A
secondary
#4CAF50
accent
#E04D48
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #7D237A

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

Preview Lab → · Contrast checker → · Palette generator →

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