#7F2198#7F2198

#7F2198 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.3% C 0.189 H 318.0°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#7F2198
RGBrgb(127, 33, 152)
HSLhsl(287, 64%, 36%)
HSVhsv(287, 78%, 60%)
CMYKcmyk(16.4%, 78.3%, 0%, 40.4%)
CIE-LABlab(33.71, 55.73, -45.06)
CIE-LCHlch(33.71, 71.67, 321.04°)
OKLaboklab(45.33% 0.1407 -0.1268)
OKLCHoklch(45.33% 0.189 318)
XYZxyz(14.9629, 7.8674, 30.4301)
Luminance0.0787 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2198 #3A9821
analogous
#442198 #7F2198 #982176
triadic
#7F2198 #987F21 #21987F
tetradic
#7F2198 #984421 #3A9821 #217698
square
#7F2198 #984421 #3A9821 #217698
split-complementary
#7F2198 #769821 #219844
monochromatic
#2B0B33 #551666 #7F2198 #A92CCA #BF59DB

Accessibility & contrast

On white

8.16
#7F2198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7F2198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2198
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2198#FFFFFF#000000##FFFFFF
##7F21981.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499B
Deuteranopia (green-blind)
#265295
Tritanopia (blue-blind)
#7E3B5C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7f2198;
/* rgb */ color: rgb(127, 33, 152);
/* oklch */ color: oklch(45.3% 0.189 318.0);
Tailwind
colors: {
  custom: {
    50: '#a868b7',
    500: '#7f2198',
    950: '#000000',
  },
}
SCSS
$custom: #7f2198;
$custom-light: #a868b7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2198",
  "rgb": {
    "r": 127,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 287.395,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.45331,
    "c": 0.18942,
    "h": 318
  },
  "luminance": 0.07867
}

Semantic roles & 50–950 ramp

primary
#7F2198
secondary
#6CBF56
accent
#E74064
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F2198

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

Preview Lab → · Contrast checker → · Palette generator →

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