#7F2197#7F2197

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

Color values

HEX#7F2197
RGBrgb(127, 33, 151)
HSLhsl(288, 64%, 36%)
HSVhsv(288, 78%, 59%)
CMYKcmyk(15.9%, 78.1%, 0%, 40.8%)
CIE-LABlab(33.64, 55.54, -44.56)
CIE-LCHlch(33.64, 71.21, 321.26°)
OKLaboklab(45.26% 0.1409 -0.1253)
OKLCHoklch(45.26% 0.189 318.3)
XYZxyz(14.8814, 7.8348, 30.0006)
Luminance0.0783 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2197 #399721
analogous
#442197 #7F2197 #972174
triadic
#7F2197 #977F21 #21977F
tetradic
#7F2197 #974421 #399721 #217497
square
#7F2197 #974421 #399721 #217497
split-complementary
#7F2197 #749721 #219744
monochromatic
#2B0B33 #551665 #7F2197 #A92CC9 #C058DA

Accessibility & contrast

On white

8.18
#7F2197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F2197
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2197#FFFFFF#000000##FFFFFF
##7F21971.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499A
Deuteranopia (green-blind)
#275294
Tritanopia (blue-blind)
#7E3B5B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7f2197;
/* rgb */ color: rgb(127, 33, 151);
/* oklch */ color: oklch(45.3% 0.189 318.3);
Tailwind
colors: {
  custom: {
    50: '#a868b6',
    500: '#7f2197',
    950: '#000000',
  },
}
SCSS
$custom: #7f2197;
$custom-light: #a868b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2197",
  "rgb": {
    "r": 127,
    "g": 33,
    "b": 151
  },
  "hsl": {
    "h": 287.797,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.45261,
    "c": 0.18854,
    "h": 318.3
  },
  "luminance": 0.07834
}

Semantic roles & 50–950 ramp

primary
#7F2197
secondary
#6BBE55
accent
#E74163
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F2197

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

Preview Lab → · Contrast checker → · Palette generator →

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