#7F225E#7F225E

#7F225E is a dark, vivid pink. Relative luminance 0.065; OKLCH L 42.0% C 0.142 H 345.4°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#7F225E
RGBrgb(127, 34, 94)
HSLhsl(321, 58%, 32%)
HSVhsv(321, 73%, 50%)
CMYKcmyk(0%, 73.2%, 26%, 50.2%)
CIE-LABlab(30.56, 45.51, -13.54)
CIE-LCHlch(30.56, 47.48, 343.43°)
OKLaboklab(42.02% 0.1377 -0.036)
OKLCHoklch(42.02% 0.142 345.4)
XYZxyz(11.3453, 6.4654, 11.2380)
Luminance0.0646 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F225E #227F43
analogous
#72227F #7F225E #7F2230
triadic
#7F225E #5E7F22 #225E7F
tetradic
#7F225E #7F7222 #227F43 #22307F
square
#7F225E #7F7222 #227F43 #22307F
split-complementary
#7F225E #307F22 #227F72
monochromatic
#1E0817 #4F153A #7F225E #AF2F82 #CF4CA1

Accessibility & contrast

On white

9.16
#7F225E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#7F225E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F225E
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F225E#FFFFFF#000000##FFFFFF
##7F225E1.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D3E60
Deuteranopia (green-blind)
#494E5C
Tritanopia (blue-blind)
#88203D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7f225e;
/* rgb */ color: rgb(127, 34, 94);
/* oklch */ color: oklch(42.0% 0.142 345.4);
Tailwind
colors: {
  custom: {
    50: '#a8668b',
    500: '#7f225e',
    950: '#000000',
  },
}
SCSS
$custom: #7f225e;
$custom-light: #a8668b;
$custom-dark: #000000;
JSON
{
  "hex": "#7f225e",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 94
  },
  "hsl": {
    "h": 321.29,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.42017,
    "c": 0.14228,
    "h": 345.4
  },
  "luminance": 0.06464
}

Semantic roles & 50–950 ramp

primary
#7F225E
secondary
#4BB270
accent
#E17E47
background
#FAF6F8
surface
#F4EBF0
border
#CEC6CB
text
#10060C
muted
#7F7A7D

Preview Lab

Preview with #7F225E

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

Preview Lab → · Contrast checker → · Palette generator →

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