#7F2189#7F2189

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

Color values

HEX#7F2189
RGBrgb(127, 33, 137)
HSLhsl(294, 61%, 33%)
HSVhsv(294, 76%, 54%)
CMYKcmyk(7.3%, 75.9%, 0%, 46.3%)
CIE-LABlab(32.72, 52.89, -37.43)
CIE-LCHlch(32.72, 64.79, 324.71°)
OKLaboklab(44.31% 0.1422 -0.1044)
OKLCHoklch(44.31% 0.176 323.7)
XYZxyz(13.8112, 7.4067, 24.3642)
Luminance0.0741 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2189 #2B8921
analogous
#4B2189 #7F2189 #89215F
triadic
#7F2189 #897F21 #21897F
tetradic
#7F2189 #894B21 #2B8921 #215F89
square
#7F2189 #894B21 #2B8921 #215F89
split-complementary
#7F2189 #5F8921 #21894B
monochromatic
#240926 #511558 #7F2189 #AD2DBA #C850D5

Accessibility & contrast

On white

8.46
#7F2189 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#7F2189 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2189
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2189#FFFFFF#000000##FFFFFF
##7F21891.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f2189;
/* rgb */ color: rgb(127, 33, 137);
/* oklch */ color: oklch(44.3% 0.176 323.7);
Tailwind
colors: {
  custom: {
    50: '#a867ac',
    500: '#7f2189',
    950: '#000000',
  },
}
SCSS
$custom: #7f2189;
$custom-light: #a867ac;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2189",
  "rgb": {
    "r": 127,
    "g": 33,
    "b": 137
  },
  "hsl": {
    "h": 294.231,
    "s": 61.176,
    "l": 33.333
  },
  "oklch": {
    "l": 0.44313,
    "c": 0.17646,
    "h": 323.7
  },
  "luminance": 0.07406
}

Semantic roles & 50–950 ramp

primary
#7F2189
secondary
#58B84E
accent
#E44453
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F2189

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

Preview Lab → · Contrast checker → · Palette generator →

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