#7F2167#7F2167

#7F2167 is a dark, vivid pink. Relative luminance 0.066; OKLCH L 42.3% C 0.150 H 340.0°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#7F2167
RGBrgb(127, 33, 103)
HSLhsl(315, 59%, 31%)
HSVhsv(315, 74%, 50%)
CMYKcmyk(0%, 74%, 18.9%, 50.2%)
CIE-LABlab(30.83, 47.18, -18.94)
CIE-LCHlch(30.83, 50.84, 338.13°)
OKLaboklab(42.35% 0.1406 -0.0511)
OKLCHoklch(42.35% 0.15 340)
XYZxyz(11.7447, 6.5801, 13.4809)
Luminance0.0658 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2167 #217F39
analogous
#68217F #7F2167 #7F2138
triadic
#7F2167 #677F21 #21677F
tetradic
#7F2167 #7F6821 #217F39 #21387F
square
#7F2167 #7F6821 #217F39 #21387F
split-complementary
#7F2167 #387F21 #217F68
monochromatic
#1E0818 #4E1440 #7F2167 #B02E8E #D04AAE

Accessibility & contrast

On white

9.07
#7F2167 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#7F2167 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2167
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2167#FFFFFF#000000##FFFFFF
##7F21671.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#273F69
Deuteranopia (green-blind)
#454E65
Tritanopia (blue-blind)
#872441
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7f2167;
/* rgb */ color: rgb(127, 33, 103);
/* oklch */ color: oklch(42.3% 0.150 340.0);
Tailwind
colors: {
  custom: {
    50: '#a76692',
    500: '#7f2167',
    950: '#000000',
  },
}
SCSS
$custom: #7f2167;
$custom-light: #a76692;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2167",
  "rgb": {
    "r": 127,
    "g": 33,
    "b": 103
  },
  "hsl": {
    "h": 315.319,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.42349,
    "c": 0.14958,
    "h": 340
  },
  "luminance": 0.06579
}

Semantic roles & 50–950 ramp

primary
#7F2167
secondary
#4AB265
accent
#E26E46
background
#FAF6F9
surface
#F4EBF1
border
#CEC6CB
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7F2167

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

Preview Lab → · Contrast checker → · Palette generator →

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