#7E236B#7E236B

#7E236B is a dark, vivid pink. Relative luminance 0.067; OKLCH L 42.6% C 0.149 H 337.5°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#7E236B
RGBrgb(126, 35, 107)
HSLhsl(313, 57%, 32%)
HSVhsv(313, 72%, 49%)
CMYKcmyk(0%, 72.2%, 15.1%, 50.6%)
CIE-LABlab(31.11, 46.77, -21.08)
CIE-LCHlch(31.11, 51.30, 335.74°)
OKLaboklab(42.58% 0.1378 -0.0572)
OKLCHoklch(42.58% 0.149 337.5)
XYZxyz(11.8593, 6.7003, 14.5758)
Luminance0.0670 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E236B #237E36
analogous
#64237E #7E236B #7E233E
triadic
#7E236B #6B7E23 #236B7E
tetradic
#7E236B #7E6423 #237E36 #233E7E
square
#7E236B #7E6423 #237E36 #233E7E
split-complementary
#7E236B #3E7E23 #237E64
monochromatic
#1E081A #4E1642 #7E236B #AE3094 #CE4EB3

Accessibility & contrast

On white

8.98
#7E236B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E236B
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E236B#FFFFFF#000000##FFFFFF
##7E236B1.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26406D
Deuteranopia (green-blind)
#444E69
Tritanopia (blue-blind)
#852844
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7e236b;
/* rgb */ color: rgb(126, 35, 107);
/* oklch */ color: oklch(42.6% 0.149 337.5);
Tailwind
colors: {
  custom: {
    50: '#a66795',
    500: '#7e236b',
    950: '#000000',
  },
}
SCSS
$custom: #7e236b;
$custom-light: #a66795;
$custom-dark: #000000;
JSON
{
  "hex": "#7e236b",
  "rgb": {
    "r": 126,
    "g": 35,
    "b": 107
  },
  "hsl": {
    "h": 312.527,
    "s": 56.522,
    "l": 31.569
  },
  "oklch": {
    "l": 0.42584,
    "c": 0.14924,
    "h": 337.5
  },
  "luminance": 0.06699
}

Semantic roles & 50–950 ramp

primary
#7E236B
secondary
#4CB061
accent
#E06848
background
#FAF6F9
surface
#F4EBF1
border
#CEC6CB
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7E236B

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

Preview Lab → · Contrast checker → · Palette generator →

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