#7D236F#7D236F

#7D236F is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.6% C 0.152 H 334.8°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#7D236F
RGBrgb(125, 35, 111)
HSLhsl(309, 56%, 31%)
HSVhsv(309, 72%, 49%)
CMYKcmyk(0%, 72%, 11.2%, 51%)
CIE-LABlab(31.14, 47.14, -23.61)
CIE-LCHlch(31.14, 52.72, 333.40°)
OKLaboklab(42.63% 0.1373 -0.0645)
OKLCHoklch(42.63% 0.152 334.8)
XYZxyz(11.9278, 6.7108, 15.7029)
Luminance0.0671 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D236F #237D31
analogous
#5E237D #7D236F #7D2342
triadic
#7D236F #6F7D23 #236F7D
tetradic
#7D236F #7D5E23 #237D31 #23427D
square
#7D236F #7D5E23 #237D31 #23427D
split-complementary
#7D236F #427D23 #237D5E
monochromatic
#1D081A #4D1645 #7D236F #AD3099 #CD4DB9

Accessibility & contrast

On white

8.97
#7D236F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#7D236F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D236F
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D236F#FFFFFF#000000##FFFFFF
##7D236F1.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224171
Deuteranopia (green-blind)
#414E6D
Tritanopia (blue-blind)
#832A46
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7d236f;
/* rgb */ color: rgb(125, 35, 111);
/* oklch */ color: oklch(42.6% 0.152 334.8);
Tailwind
colors: {
  custom: {
    50: '#a66798',
    500: '#7d236f',
    950: '#000000',
  },
}
SCSS
$custom: #7d236f;
$custom-light: #a66798;
$custom-dark: #000000;
JSON
{
  "hex": "#7d236f",
  "rgb": {
    "r": 125,
    "g": 35,
    "b": 111
  },
  "hsl": {
    "h": 309.333,
    "s": 56.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.42633,
    "c": 0.15164,
    "h": 334.8
  },
  "luminance": 0.0671
}

Semantic roles & 50–950 ramp

primary
#7D236F
secondary
#4CAF5C
accent
#E06048
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7D236F

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

Preview Lab → · Contrast checker → · Palette generator →

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