#7F2195#7F2195

#7F2195 is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.1% C 0.187 H 319.1°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#7F2195
RGBrgb(127, 33, 149)
HSLhsl(289, 64%, 36%)
HSVhsv(289, 78%, 58%)
CMYKcmyk(14.8%, 77.9%, 0%, 41.6%)
CIE-LABlab(33.50, 55.15, -43.56)
CIE-LCHlch(33.50, 70.28, 321.70°)
OKLaboklab(45.12% 0.1411 -0.1224)
OKLCHoklch(45.12% 0.187 319.1)
XYZxyz(14.7204, 7.7704, 29.1524)
Luminance0.0777 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2195 #379521
analogous
#452195 #7F2195 #952171
triadic
#7F2195 #957F21 #21957F
tetradic
#7F2195 #954521 #379521 #217195
square
#7F2195 #954521 #379521 #217195
split-complementary
#7F2195 #719521 #219545
monochromatic
#2A0B31 #541663 #7F2195 #AA2CC7 #C157DA

Accessibility & contrast

On white

8.22
#7F2195 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#7F2195 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2195
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2195#FFFFFF#000000##FFFFFF
##7F21951.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004998
Deuteranopia (green-blind)
#295292
Tritanopia (blue-blind)
#7F3A5A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7f2195;
/* rgb */ color: rgb(127, 33, 149);
/* oklch */ color: oklch(45.1% 0.187 319.1);
Tailwind
colors: {
  custom: {
    50: '#a868b5',
    500: '#7f2195',
    950: '#000000',
  },
}
SCSS
$custom: #7f2195;
$custom-light: #a868b5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2195",
  "rgb": {
    "r": 127,
    "g": 33,
    "b": 149
  },
  "hsl": {
    "h": 288.621,
    "s": 63.736,
    "l": 35.686
  },
  "oklch": {
    "l": 0.45121,
    "c": 0.18679,
    "h": 319.1
  },
  "luminance": 0.0777
}

Semantic roles & 50–950 ramp

primary
#7F2195
secondary
#68BE54
accent
#E74160
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F2195

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

Preview Lab → · Contrast checker → · Palette generator →

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