#7F2187#7F2187

#7F2187 is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.2% C 0.175 H 324.5°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#7F2187
RGBrgb(127, 33, 135)
HSLhsl(295, 61%, 33%)
HSVhsv(295, 76%, 53%)
CMYKcmyk(5.9%, 75.6%, 0%, 47.1%)
CIE-LABlab(32.59, 52.52, -36.39)
CIE-LCHlch(32.59, 63.89, 325.28°)
OKLaboklab(44.18% 0.1424 -0.1014)
OKLCHoklch(44.18% 0.175 324.5)
XYZxyz(13.6691, 7.3499, 23.6157)
Luminance0.0735 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2187 #298721
analogous
#4C2187 #7F2187 #87215C
triadic
#7F2187 #877F21 #21877F
tetradic
#7F2187 #874C21 #298721 #215C87
square
#7F2187 #874C21 #298721 #215C87
split-complementary
#7F2187 #5C8721 #21874C
monochromatic
#220925 #511556 #7F2187 #AD2DB8 #C94FD4

Accessibility & contrast

On white

8.50
#7F2187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#7F2187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2187
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2187#FFFFFF#000000##FFFFFF
##7F21871.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458A
Deuteranopia (green-blind)
#355085
Tritanopia (blue-blind)
#823352
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7f2187;
/* rgb */ color: rgb(127, 33, 135);
/* oklch */ color: oklch(44.2% 0.175 324.5);
Tailwind
colors: {
  custom: {
    50: '#a767aa',
    500: '#7f2187',
    950: '#000000',
  },
}
SCSS
$custom: #7f2187;
$custom-light: #a767aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2187",
  "rgb": {
    "r": 127,
    "g": 33,
    "b": 135
  },
  "hsl": {
    "h": 295.294,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.44184,
    "c": 0.17477,
    "h": 324.5
  },
  "luminance": 0.07349
}

Semantic roles & 50–950 ramp

primary
#7F2187
secondary
#55B74D
accent
#E44450
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F2187

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

Preview Lab → · Contrast checker → · Palette generator →

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