#7C236D#7C236D

#7C236D is a dark, vivid pink. Relative luminance 0.066; OKLCH L 42.4% C 0.149 H 335.4°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#7C236D
RGBrgb(124, 35, 109)
HSLhsl(310, 56%, 31%)
HSVhsv(310, 72%, 49%)
CMYKcmyk(0%, 71.8%, 12.1%, 51.4%)
CIE-LABlab(30.86, 46.55, -22.78)
CIE-LCHlch(30.86, 51.83, 333.93°)
OKLaboklab(42.36% 0.1359 -0.0621)
OKLCHoklch(42.36% 0.149 335.4)
XYZxyz(11.6737, 6.5923, 15.1227)
Luminance0.0659 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C236D #237C32
analogous
#5E237C #7C236D #7C2340
triadic
#7C236D #6D7C23 #236D7C
tetradic
#7C236D #7C5E23 #237C32 #23407C
square
#7C236D #7C5E23 #237C32 #23407C
split-complementary
#7C236D #407C23 #237C5E
monochromatic
#1D0819 #4C1643 #7C236D #AC3097 #CD4DB7

Accessibility & contrast

On white

9.06
#7C236D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#7C236D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C236D
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C236D#FFFFFF#000000##FFFFFF
##7C236D1.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23406F
Deuteranopia (green-blind)
#414D6B
Tritanopia (blue-blind)
#822945
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7c236d;
/* rgb */ color: rgb(124, 35, 109);
/* oklch */ color: oklch(42.4% 0.149 335.4);
Tailwind
colors: {
  custom: {
    50: '#a56697',
    500: '#7c236d',
    950: '#000000',
  },
}
SCSS
$custom: #7c236d;
$custom-light: #a56697;
$custom-dark: #000000;
JSON
{
  "hex": "#7c236d",
  "rgb": {
    "r": 124,
    "g": 35,
    "b": 109
  },
  "hsl": {
    "h": 310.112,
    "s": 55.975,
    "l": 31.176
  },
  "oklch": {
    "l": 0.42364,
    "c": 0.14945,
    "h": 335.4
  },
  "luminance": 0.06591
}

Semantic roles & 50–950 ramp

primary
#7C236D
secondary
#4CAF5D
accent
#DF6249
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7C236D

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

Preview Lab → · Contrast checker → · Palette generator →

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