#7F236D#7F236D

#7F236D is a dark, vivid pink. Relative luminance 0.068; OKLCH L 42.9% C 0.151 H 336.8°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#7F236D
RGBrgb(127, 35, 109)
HSLhsl(312, 57%, 32%)
HSVhsv(312, 72%, 50%)
CMYKcmyk(0%, 72.4%, 14.2%, 50.2%)
CIE-LABlab(31.39, 47.35, -21.91)
CIE-LCHlch(31.39, 52.17, 335.17°)
OKLaboklab(42.85% 0.1392 -0.0596)
OKLCHoklch(42.85% 0.151 336.8)
XYZxyz(12.1139, 6.8193, 15.1433)
Luminance0.0682 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F236D #237F35
analogous
#63237F #7F236D #7F233F
triadic
#7F236D #6D7F23 #236D7F
tetradic
#7F236D #7F6323 #237F35 #233F7F
square
#7F236D #7F6323 #237F35 #233F7F
split-complementary
#7F236D #3F7F23 #237F63
monochromatic
#1F091B #4F1644 #7F236D #AF3096 #CE4EB5

Accessibility & contrast

On white

8.88
#7F236D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#7F236D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F236D
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F236D#FFFFFF#000000##FFFFFF
##7F236D1.008.882.368.88
#FFFFFF8.881.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25416F
Deuteranopia (green-blind)
#444F6B
Tritanopia (blue-blind)
#862845
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7f236d;
/* rgb */ color: rgb(127, 35, 109);
/* oklch */ color: oklch(42.9% 0.151 336.8);
Tailwind
colors: {
  custom: {
    50: '#a76797',
    500: '#7f236d',
    950: '#000000',
  },
}
SCSS
$custom: #7f236d;
$custom-light: #a76797;
$custom-dark: #000000;
JSON
{
  "hex": "#7f236d",
  "rgb": {
    "r": 127,
    "g": 35,
    "b": 109
  },
  "hsl": {
    "h": 311.739,
    "s": 56.79,
    "l": 31.765
  },
  "oklch": {
    "l": 0.42851,
    "c": 0.1514,
    "h": 336.8
  },
  "luminance": 0.06818
}

Semantic roles & 50–950 ramp

primary
#7F236D
secondary
#4CB160
accent
#E06648
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7F236D

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

Preview Lab → · Contrast checker → · Palette generator →

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