#7D237C#7D237C

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

Color values

HEX#7D237C
RGBrgb(125, 35, 124)
HSLhsl(301, 56%, 31%)
HSVhsv(301, 72%, 49%)
CMYKcmyk(0%, 72%, 0.8%, 51%)
CIE-LABlab(31.85, 49.35, -30.72)
CIE-LCHlch(31.85, 58.13, 328.10°)
OKLaboklab(43.37% 0.1381 -0.085)
OKLCHoklch(43.37% 0.162 328.4)
XYZxyz(12.6964, 7.0182, 19.7508)
Luminance0.0702 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D237C #237D24
analogous
#51237D #7D237C #7D234F
triadic
#7D237C #7C7D23 #237C7D
tetradic
#7D237C #7D5123 #237D24 #234F7D
square
#7D237C #7D5123 #237D24 #234F7D
split-complementary
#7D237C #4F7D23 #237D51
monochromatic
#1D081D #4D164D #7D237C #AD30AB #CD4DCC

Accessibility & contrast

On white

8.74
#7D237C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D237C
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D237C#FFFFFF#000000##FFFFFF
##7D237C1.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15437F
Deuteranopia (green-blind)
#3B4F7A
Tritanopia (blue-blind)
#81304D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7d237c;
/* rgb */ color: rgb(125, 35, 124);
/* oklch */ color: oklch(43.4% 0.162 328.4);
Tailwind
colors: {
  custom: {
    50: '#a667a2',
    500: '#7d237c',
    950: '#000000',
  },
}
SCSS
$custom: #7d237c;
$custom-light: #a667a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7d237c",
  "rgb": {
    "r": 125,
    "g": 35,
    "b": 124
  },
  "hsl": {
    "h": 300.667,
    "s": 56.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.43374,
    "c": 0.16215,
    "h": 328.4
  },
  "luminance": 0.07017
}

Semantic roles & 50–950 ramp

primary
#7D237C
secondary
#4CAF4D
accent
#E04A48
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D237C

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

Preview Lab → · Contrast checker → · Palette generator →

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