#7D237E#7D237E

#7D237E is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.5% C 0.164 H 327.5°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#7D237E
RGBrgb(125, 35, 126)
HSLhsl(299, 57%, 32%)
HSVhsv(299, 72%, 49%)
CMYKcmyk(0.8%, 72.2%, 0%, 50.6%)
CIE-LABlab(31.96, 49.71, -31.79)
CIE-LCHlch(31.96, 59.00, 327.40°)
OKLaboklab(43.5% 0.1382 -0.0881)
OKLCHoklch(43.5% 0.164 327.5)
XYZxyz(12.8242, 7.0693, 20.4237)
Luminance0.0707 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D237E #247E23
analogous
#50237E #7D237E #7E2352
triadic
#7D237E #7E7D23 #237E7D
tetradic
#7D237E #7E5023 #247E23 #23527E
square
#7D237E #7E5023 #247E23 #23527E
split-complementary
#7D237E #527E23 #237E50
monochromatic
#1E081E #4D164E #7D237E #AD30AE #CC4ECE

Accessibility & contrast

On white

8.70
#7D237E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D237E
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D237E#FFFFFF#000000##FFFFFF
##7D237E1.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124481
Deuteranopia (green-blind)
#3A4F7C
Tritanopia (blue-blind)
#81314E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7d237e;
/* rgb */ color: rgb(125, 35, 126);
/* oklch */ color: oklch(43.5% 0.164 327.5);
Tailwind
colors: {
  custom: {
    50: '#a667a4',
    500: '#7d237e',
    950: '#000000',
  },
}
SCSS
$custom: #7d237e;
$custom-light: #a667a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7d237e",
  "rgb": {
    "r": 125,
    "g": 35,
    "b": 126
  },
  "hsl": {
    "h": 299.341,
    "s": 56.522,
    "l": 31.569
  },
  "oklch": {
    "l": 0.43495,
    "c": 0.16383,
    "h": 327.5
  },
  "luminance": 0.07068
}

Semantic roles & 50–950 ramp

primary
#7D237E
secondary
#4DB04C
accent
#E0484A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D237E

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

Preview Lab → · Contrast checker → · Palette generator →

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