#7F3199#7F3199

#7F3199 is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.0% C 0.171 H 316.5°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#7F3199
RGBrgb(127, 49, 153)
HSLhsl(285, 51%, 40%)
HSVhsv(285, 68%, 60%)
CMYKcmyk(17%, 68%, 0%, 40%)
CIE-LABlab(36.00, 49.61, -41.98)
CIE-LCHlch(36.00, 64.99, 319.76°)
OKLaboklab(46.99% 0.1243 -0.1178)
OKLCHoklch(46.99% 0.171 316.5)
XYZxyz(15.5996, 9.0092, 31.0480)
Luminance0.0901 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3199 #4B9931
analogous
#4B3199 #7F3199 #99317F
triadic
#7F3199 #997F31 #31997F
tetradic
#7F3199 #994B31 #4B9931 #317F99
square
#7F3199 #994B31 #4B9931 #317F99
split-complementary
#7F3199 #7F9931 #31994B
monochromatic
#32133C #59226B #7F3199 #A344C3 #BA72D2

Accessibility & contrast

On white

7.50
#7F3199 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#7F3199 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F3199
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3199#FFFFFF#000000##FFFFFF
##7F31991.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00509C
Deuteranopia (green-blind)
#325797
Tritanopia (blue-blind)
#7E4561
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7f3199;
/* rgb */ color: rgb(127, 49, 153);
/* oklch */ color: oklch(47.0% 0.171 316.5);
Tailwind
colors: {
  custom: {
    50: '#a76fb8',
    500: '#7f3199',
    950: '#000000',
  },
}
SCSS
$custom: #7f3199;
$custom-light: #a76fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3199",
  "rgb": {
    "r": 127,
    "g": 49,
    "b": 153
  },
  "hsl": {
    "h": 285,
    "s": 51.485,
    "l": 39.608
  },
  "oklch": {
    "l": 0.46989,
    "c": 0.17127,
    "h": 316.5
  },
  "luminance": 0.09009
}

Semantic roles & 50–950 ramp

primary
#7F3199
secondary
#7FBA6C
accent
#DB4D70
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #7F3199

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

Preview Lab → · Contrast checker → · Palette generator →

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