#7F236F#7F236F

#7F236F is a dark, vivid pink. Relative luminance 0.069; OKLCH L 43.0% C 0.153 H 335.8°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#7F236F
RGBrgb(127, 35, 111)
HSLhsl(310, 57%, 32%)
HSVhsv(310, 72%, 50%)
CMYKcmyk(0%, 72.4%, 12.6%, 50.2%)
CIE-LABlab(31.49, 47.67, -23.03)
CIE-LCHlch(31.49, 52.94, 334.21°)
OKLaboklab(42.96% 0.1394 -0.0628)
OKLCHoklch(42.96% 0.153 335.8)
XYZxyz(12.2228, 6.8629, 15.7168)
Luminance0.0686 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F236F #237F33
analogous
#61237F #7F236F #7F2341
triadic
#7F236F #6F7F23 #236F7F
tetradic
#7F236F #7F6123 #237F33 #23417F
square
#7F236F #7F6123 #237F33 #23417F
split-complementary
#7F236F #417F23 #237F61
monochromatic
#1F091B #4F1645 #7F236F #AF3099 #CE4EB8

Accessibility & contrast

On white

8.85
#7F236F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#7F236F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F236F
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F236F#FFFFFF#000000##FFFFFF
##7F236F1.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244171
Deuteranopia (green-blind)
#434F6D
Tritanopia (blue-blind)
#862946
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7f236f;
/* rgb */ color: rgb(127, 35, 111);
/* oklch */ color: oklch(43.0% 0.153 335.8);
Tailwind
colors: {
  custom: {
    50: '#a76798',
    500: '#7f236f',
    950: '#000000',
  },
}
SCSS
$custom: #7f236f;
$custom-light: #a76798;
$custom-dark: #000000;
JSON
{
  "hex": "#7f236f",
  "rgb": {
    "r": 127,
    "g": 35,
    "b": 111
  },
  "hsl": {
    "h": 310.435,
    "s": 56.79,
    "l": 31.765
  },
  "oklch": {
    "l": 0.42957,
    "c": 0.1529,
    "h": 335.8
  },
  "luminance": 0.06862
}

Semantic roles & 50–950 ramp

primary
#7F236F
secondary
#4CB15E
accent
#E06248
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7F236F

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

Preview Lab → · Contrast checker → · Palette generator →

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