#7F2288#7F2288

#7F2288 is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.3% C 0.174 H 324.1°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#7F2288
RGBrgb(127, 34, 136)
HSLhsl(295, 60%, 33%)
HSVhsv(295, 75%, 53%)
CMYKcmyk(6.6%, 75%, 0%, 46.7%)
CIE-LABlab(32.78, 52.35, -36.71)
CIE-LCHlch(32.78, 63.94, 324.96°)
OKLaboklab(44.34% 0.1413 -0.1023)
OKLCHoklch(44.34% 0.174 324.1)
XYZxyz(13.7680, 7.4345, 23.9976)
Luminance0.0743 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2288 #2B8822
analogous
#4C2288 #7F2288 #88225E
triadic
#7F2288 #887F22 #22887F
tetradic
#7F2288 #884C22 #2B8822 #225E88
square
#7F2288 #884C22 #2B8822 #225E88
split-complementary
#7F2288 #5E8822 #22884C
monochromatic
#240A26 #511657 #7F2288 #AD2EB9 #C851D3

Accessibility & contrast

On white

8.44
#7F2288 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#7F2288 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2288
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2288#FFFFFF#000000##FFFFFF
##7F22881.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468B
Deuteranopia (green-blind)
#355186
Tritanopia (blue-blind)
#813453
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7f2288;
/* rgb */ color: rgb(127, 34, 136);
/* oklch */ color: oklch(44.3% 0.174 324.1);
Tailwind
colors: {
  custom: {
    50: '#a767ab',
    500: '#7f2288',
    950: '#000000',
  },
}
SCSS
$custom: #7f2288;
$custom-light: #a767ab;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2288",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 136
  },
  "hsl": {
    "h": 294.706,
    "s": 60,
    "l": 33.333
  },
  "oklch": {
    "l": 0.44337,
    "c": 0.17449,
    "h": 324.1
  },
  "luminance": 0.07434
}

Semantic roles & 50–950 ramp

primary
#7F2288
secondary
#58B74F
accent
#E34553
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F2288

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

Preview Lab → · Contrast checker → · Palette generator →

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