#7F236A#7F236A

#7F236A is a dark, vivid pink. Relative luminance 0.068; OKLCH L 42.7% C 0.149 H 338.5°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#7F236A
RGBrgb(127, 35, 106)
HSLhsl(314, 57%, 32%)
HSVhsv(314, 72%, 50%)
CMYKcmyk(0%, 72.4%, 16.5%, 50.2%)
CIE-LABlab(31.24, 46.88, -20.22)
CIE-LCHlch(31.24, 51.06, 336.67°)
OKLaboklab(42.7% 0.1388 -0.0548)
OKLCHoklch(42.7% 0.149 338.5)
XYZxyz(11.9552, 6.7558, 14.3072)
Luminance0.0675 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F236A #237F38
analogous
#66237F #7F236A #7F233C
triadic
#7F236A #6A7F23 #236A7F
tetradic
#7F236A #7F6623 #237F38 #233C7F
square
#7F236A #7F6623 #237F38 #233C7F
split-complementary
#7F236A #3C7F23 #237F66
monochromatic
#1F091A #4F1642 #7F236A #AF3092 #CE4EB1

Accessibility & contrast

On white

8.93
#7F236A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#7F236A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F236A
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F236A#FFFFFF#000000##FFFFFF
##7F236A1.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27406C
Deuteranopia (green-blind)
#454F68
Tritanopia (blue-blind)
#862743
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7f236a;
/* rgb */ color: rgb(127, 35, 106);
/* oklch */ color: oklch(42.7% 0.149 338.5);
Tailwind
colors: {
  custom: {
    50: '#a76795',
    500: '#7f236a',
    950: '#000000',
  },
}
SCSS
$custom: #7f236a;
$custom-light: #a76795;
$custom-dark: #000000;
JSON
{
  "hex": "#7f236a",
  "rgb": {
    "r": 127,
    "g": 35,
    "b": 106
  },
  "hsl": {
    "h": 313.696,
    "s": 56.79,
    "l": 31.765
  },
  "oklch": {
    "l": 0.42696,
    "c": 0.14917,
    "h": 338.5
  },
  "luminance": 0.06755
}

Semantic roles & 50–950 ramp

primary
#7F236A
secondary
#4CB163
accent
#E06B48
background
#FAF6F9
surface
#F4EBF1
border
#CEC6CB
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7F236A

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

Preview Lab → · Contrast checker → · Palette generator →

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