#7D237B#7D237B

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

Color values

HEX#7D237B
RGBrgb(125, 35, 123)
HSLhsl(301, 56%, 31%)
HSVhsv(301, 72%, 49%)
CMYKcmyk(0%, 72%, 1.6%, 51%)
CIE-LABlab(31.79, 49.18, -30.18)
CIE-LCHlch(31.79, 57.70, 328.46°)
OKLaboklab(43.32% 0.1381 -0.0834)
OKLCHoklch(43.32% 0.161 328.9)
XYZxyz(12.6335, 6.9930, 19.4194)
Luminance0.0699 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D237B #237D25
analogous
#52237D #7D237B #7D234E
triadic
#7D237B #7B7D23 #237B7D
tetradic
#7D237B #7D5223 #237D25 #234E7D
square
#7D237B #7D5223 #237D25 #234E7D
split-complementary
#7D237B #4E7D23 #237D52
monochromatic
#1D081D #4D164C #7D237B #AD30AA #CD4DCA

Accessibility & contrast

On white

8.76
#7D237B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#7D237B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D237B
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D237B#FFFFFF#000000##FFFFFF
##7D237B1.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17437D
Deuteranopia (green-blind)
#3C4F79
Tritanopia (blue-blind)
#812F4C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7d237b;
/* rgb */ color: rgb(125, 35, 123);
/* oklch */ color: oklch(43.3% 0.161 328.9);
Tailwind
colors: {
  custom: {
    50: '#a667a1',
    500: '#7d237b',
    950: '#000000',
  },
}
SCSS
$custom: #7d237b;
$custom-light: #a667a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7d237b",
  "rgb": {
    "r": 125,
    "g": 35,
    "b": 123
  },
  "hsl": {
    "h": 301.333,
    "s": 56.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.43315,
    "c": 0.16133,
    "h": 328.9
  },
  "luminance": 0.06992
}

Semantic roles & 50–950 ramp

primary
#7D237B
secondary
#4CAF4F
accent
#E04C48
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D237B

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

Preview Lab → · Contrast checker → · Palette generator →

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