#7F3196#7F3196

#7F3196 is a mid, vivid purple. Relative luminance 0.089; OKLCH L 46.8% C 0.168 H 317.7°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#7F3196
RGBrgb(127, 49, 150)
HSLhsl(286, 51%, 39%)
HSVhsv(286, 67%, 59%)
CMYKcmyk(15.3%, 67.3%, 0%, 41.2%)
CIE-LABlab(35.81, 48.98, -40.46)
CIE-LCHlch(35.81, 63.53, 320.44°)
OKLaboklab(46.79% 0.1244 -0.1134)
OKLCHoklch(46.79% 0.168 317.7)
XYZxyz(15.3549, 8.9113, 29.7595)
Luminance0.0891 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3196 #489631
analogous
#4D3196 #7F3196 #96317B
triadic
#7F3196 #967F31 #31967F
tetradic
#7F3196 #964D31 #489631 #317B96
square
#7F3196 #964D31 #489631 #317B96
split-complementary
#7F3196 #7B9631 #31964D
monochromatic
#31133A #582268 #7F3196 #A543C1 #BB71D1

Accessibility & contrast

On white

7.55
#7F3196 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#7F3196 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F3196
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3196#FFFFFF#000000##FFFFFF
##7F31961.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#074F99
Deuteranopia (green-blind)
#345794
Tritanopia (blue-blind)
#7E445F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7f3196;
/* rgb */ color: rgb(127, 49, 150);
/* oklch */ color: oklch(46.8% 0.168 317.7);
Tailwind
colors: {
  custom: {
    50: '#a76fb5',
    500: '#7f3196',
    950: '#000000',
  },
}
SCSS
$custom: #7f3196;
$custom-light: #a76fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3196",
  "rgb": {
    "r": 127,
    "g": 49,
    "b": 150
  },
  "hsl": {
    "h": 286.337,
    "s": 50.754,
    "l": 39.02
  },
  "oklch": {
    "l": 0.46793,
    "c": 0.16834,
    "h": 317.7
  },
  "luminance": 0.08911
}

Semantic roles & 50–950 ramp

primary
#7F3196
secondary
#7CB86A
accent
#DA4E6E
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #7F3196

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

Preview Lab → · Contrast checker → · Palette generator →

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