#7D237F#7D237F

#7D237F is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.6% C 0.165 H 327.0°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#7D237F
RGBrgb(125, 35, 127)
HSLhsl(299, 57%, 32%)
HSVhsv(299, 72%, 50%)
CMYKcmyk(1.6%, 72.4%, 0%, 50.2%)
CIE-LABlab(32.02, 49.89, -32.32)
CIE-LCHlch(32.02, 59.44, 327.06°)
OKLaboklab(43.56% 0.1382 -0.0896)
OKLCHoklch(43.56% 0.165 327)
XYZxyz(12.8890, 7.0952, 20.7652)
Luminance0.0709 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D237F #257F23
analogous
#4F237F #7D237F #7F2353
triadic
#7D237F #7F7D23 #237F7D
tetradic
#7D237F #7F4F23 #257F23 #23537F
square
#7D237F #7F4F23 #257F23 #23537F
split-complementary
#7D237F #537F23 #237F4F
monochromatic
#1F091F #4E164F #7D237F #AC30AF #CB4ECE

Accessibility & contrast

On white

8.68
#7D237F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#7D237F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D237F
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D237F#FFFFFF#000000##FFFFFF
##7D237F1.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114482
Deuteranopia (green-blind)
#394F7D
Tritanopia (blue-blind)
#81314E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7d237f;
/* rgb */ color: rgb(125, 35, 127);
/* oklch */ color: oklch(43.6% 0.165 327.0);
Tailwind
colors: {
  custom: {
    50: '#a667a4',
    500: '#7d237f',
    950: '#000000',
  },
}
SCSS
$custom: #7d237f;
$custom-light: #a667a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7d237f",
  "rgb": {
    "r": 125,
    "g": 35,
    "b": 127
  },
  "hsl": {
    "h": 298.696,
    "s": 56.79,
    "l": 31.765
  },
  "oklch": {
    "l": 0.43556,
    "c": 0.16467,
    "h": 327
  },
  "luminance": 0.07094
}

Semantic roles & 50–950 ramp

primary
#7D237F
secondary
#4FB14C
accent
#E0484B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D237F

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

Preview Lab → · Contrast checker → · Palette generator →

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