#7D237D#7D237D

#7D237D is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.4% C 0.163 H 327.9°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#7D237D
RGBrgb(125, 35, 125)
HSLhsl(300, 56%, 31%)
HSVhsv(300, 72%, 49%)
CMYKcmyk(0%, 72%, 0%, 51%)
CIE-LABlab(31.91, 49.53, -31.25)
CIE-LCHlch(31.91, 58.57, 327.75°)
OKLaboklab(43.44% 0.1381 -0.0865)
OKLCHoklch(43.44% 0.163 327.9)
XYZxyz(12.7600, 7.0436, 20.0855)
Luminance0.0704 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D237D #237D23
analogous
#50237D #7D237D #7D2350
triadic
#7D237D #7D7D23 #237D7D
tetradic
#7D237D #7D5023 #237D23 #23507D
square
#7D237D #7D5023 #237D23 #23507D
split-complementary
#7D237D #507D23 #237D50
monochromatic
#1D081D #4D164D #7D237D #AD30AD #CD4DCD

Accessibility & contrast

On white

8.72
#7D237D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#7D237D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D237D
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D237D#FFFFFF#000000##FFFFFF
##7D237D1.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#144480
Deuteranopia (green-blind)
#3B4F7B
Tritanopia (blue-blind)
#81304D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7d237d;
/* rgb */ color: rgb(125, 35, 125);
/* oklch */ color: oklch(43.4% 0.163 327.9);
Tailwind
colors: {
  custom: {
    50: '#a667a3',
    500: '#7d237d',
    950: '#000000',
  },
}
SCSS
$custom: #7d237d;
$custom-light: #a667a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7d237d",
  "rgb": {
    "r": 125,
    "g": 35,
    "b": 125
  },
  "hsl": {
    "h": 300,
    "s": 56.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.43435,
    "c": 0.16299,
    "h": 327.9
  },
  "luminance": 0.07043
}

Semantic roles & 50–950 ramp

primary
#7D237D
secondary
#4CAF4C
accent
#E04848
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D237D

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

Preview Lab → · Contrast checker → · Palette generator →

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