#7F2196#7F2196

#7F2196 is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.2% C 0.188 H 318.7°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#7F2196
RGBrgb(127, 33, 150)
HSLhsl(288, 64%, 36%)
HSVhsv(288, 78%, 59%)
CMYKcmyk(15.3%, 78%, 0%, 41.2%)
CIE-LABlab(33.57, 55.34, -44.06)
CIE-LCHlch(33.57, 70.74, 321.47°)
OKLaboklab(45.19% 0.141 -0.1238)
OKLCHoklch(45.19% 0.188 318.7)
XYZxyz(14.8005, 7.8025, 29.5747)
Luminance0.0780 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2196 #389621
analogous
#442196 #7F2196 #962172
triadic
#7F2196 #967F21 #21967F
tetradic
#7F2196 #964421 #389621 #217296
square
#7F2196 #964421 #389621 #217296
split-complementary
#7F2196 #729621 #219644
monochromatic
#2A0B32 #551664 #7F2196 #A92CC8 #C057DA

Accessibility & contrast

On white

8.20
#7F2196 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#7F2196 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2196
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2196#FFFFFF#000000##FFFFFF
##7F21961.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004999
Deuteranopia (green-blind)
#285293
Tritanopia (blue-blind)
#7F3A5B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7f2196;
/* rgb */ color: rgb(127, 33, 150);
/* oklch */ color: oklch(45.2% 0.188 318.7);
Tailwind
colors: {
  custom: {
    50: '#a868b5',
    500: '#7f2196',
    950: '#000000',
  },
}
SCSS
$custom: #7f2196;
$custom-light: #a868b5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2196",
  "rgb": {
    "r": 127,
    "g": 33,
    "b": 150
  },
  "hsl": {
    "h": 288.205,
    "s": 63.934,
    "l": 35.882
  },
  "oklch": {
    "l": 0.45191,
    "c": 0.18767,
    "h": 318.7
  },
  "luminance": 0.07802
}

Semantic roles & 50–950 ramp

primary
#7F2196
secondary
#69BE55
accent
#E74162
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F2196

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

Preview Lab → · Contrast checker → · Palette generator →

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