#7C236B#7C236B

#7C236B is a dark, vivid pink. Relative luminance 0.065; OKLCH L 42.3% C 0.148 H 336.5°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#7C236B
RGBrgb(124, 35, 107)
HSLhsl(311, 56%, 31%)
HSVhsv(311, 72%, 49%)
CMYKcmyk(0%, 71.8%, 13.7%, 51.4%)
CIE-LABlab(30.76, 46.23, -21.66)
CIE-LCHlch(30.76, 51.05, 334.90°)
OKLaboklab(42.26% 0.1357 -0.0589)
OKLCHoklch(42.26% 0.148 336.5)
XYZxyz(11.5672, 6.5497, 14.5621)
Luminance0.0655 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C236B #237C34
analogous
#60237C #7C236B #7C233E
triadic
#7C236B #6B7C23 #236B7C
tetradic
#7C236B #7C6023 #237C34 #233E7C
square
#7C236B #7C6023 #237C34 #233E7C
split-complementary
#7C236B #3E7C23 #237C60
monochromatic
#1D0819 #4C1642 #7C236B #AC3094 #CD4DB4

Accessibility & contrast

On white

9.09
#7C236B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#7C236B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C236B
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C236B#FFFFFF#000000##FFFFFF
##7C236B1.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25406D
Deuteranopia (green-blind)
#424D69
Tritanopia (blue-blind)
#832844
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7c236b;
/* rgb */ color: rgb(124, 35, 107);
/* oklch */ color: oklch(42.3% 0.148 336.5);
Tailwind
colors: {
  custom: {
    50: '#a56695',
    500: '#7c236b',
    950: '#000000',
  },
}
SCSS
$custom: #7c236b;
$custom-light: #a56695;
$custom-dark: #000000;
JSON
{
  "hex": "#7c236b",
  "rgb": {
    "r": 124,
    "g": 35,
    "b": 107
  },
  "hsl": {
    "h": 311.461,
    "s": 55.975,
    "l": 31.176
  },
  "oklch": {
    "l": 0.42258,
    "c": 0.14792,
    "h": 336.5
  },
  "luminance": 0.06549
}

Semantic roles & 50–950 ramp

primary
#7C236B
secondary
#4CAF5F
accent
#DF6549
background
#FAF6F9
surface
#F4EBF1
border
#CEC6CB
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7C236B

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

Preview Lab → · Contrast checker → · Palette generator →

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