#7E236D#7E236D

#7E236D is a dark, vivid pink. Relative luminance 0.067; OKLCH L 42.7% C 0.151 H 336.4°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#7E236D
RGBrgb(126, 35, 109)
HSLhsl(311, 57%, 32%)
HSVhsv(311, 72%, 49%)
CMYKcmyk(0%, 72.2%, 13.5%, 50.6%)
CIE-LABlab(31.21, 47.08, -22.20)
CIE-LCHlch(31.21, 52.06, 334.75°)
OKLaboklab(42.69% 0.1381 -0.0604)
OKLCHoklch(42.69% 0.151 336.4)
XYZxyz(11.9657, 6.7429, 15.1363)
Luminance0.0674 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E236D #237E34
analogous
#62237E #7E236D #7E2340
triadic
#7E236D #6D7E23 #236D7E
tetradic
#7E236D #7E6223 #237E34 #23407E
square
#7E236D #7E6223 #237E34 #23407E
split-complementary
#7E236D #407E23 #237E62
monochromatic
#1E081A #4E1644 #7E236D #AE3096 #CE4EB6

Accessibility & contrast

On white

8.94
#7E236D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#7E236D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E236D
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E236D#FFFFFF#000000##FFFFFF
##7E236D1.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25416F
Deuteranopia (green-blind)
#434E6B
Tritanopia (blue-blind)
#852945
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7e236d;
/* rgb */ color: rgb(126, 35, 109);
/* oklch */ color: oklch(42.7% 0.151 336.4);
Tailwind
colors: {
  custom: {
    50: '#a66797',
    500: '#7e236d',
    950: '#000000',
  },
}
SCSS
$custom: #7e236d;
$custom-light: #a66797;
$custom-dark: #000000;
JSON
{
  "hex": "#7e236d",
  "rgb": {
    "r": 126,
    "g": 35,
    "b": 109
  },
  "hsl": {
    "h": 311.209,
    "s": 56.522,
    "l": 31.569
  },
  "oklch": {
    "l": 0.42688,
    "c": 0.15075,
    "h": 336.4
  },
  "luminance": 0.06742
}

Semantic roles & 50–950 ramp

primary
#7E236D
secondary
#4CB05F
accent
#E06448
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7E236D

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

Preview Lab → · Contrast checker → · Palette generator →

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