#7F3192#7F3192

#7F3192 is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.5% C 0.164 H 319.2°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#7F3192
RGBrgb(127, 49, 146)
HSLhsl(288, 50%, 38%)
HSVhsv(288, 66%, 57%)
CMYKcmyk(13%, 66.4%, 0%, 42.7%)
CIE-LABlab(35.57, 48.16, -38.41)
CIE-LCHlch(35.57, 61.61, 321.42°)
OKLaboklab(46.54% 0.1245 -0.1074)
OKLCHoklch(46.54% 0.164 319.2)
XYZxyz(15.0383, 8.7847, 28.0920)
Luminance0.0878 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3192 #449231
analogous
#4E3192 #7F3192 #923174
triadic
#7F3192 #927F31 #31927F
tetradic
#7F3192 #924E31 #449231 #317492
square
#7F3192 #924E31 #449231 #317492
split-complementary
#7F3192 #749231 #31924E
monochromatic
#2F1236 #572264 #7F3192 #A641BF #BC6FCF

Accessibility & contrast

On white

7.62
#7F3192 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#7F3192 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F3192
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3192#FFFFFF#000000##FFFFFF
##7F31921.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114E95
Deuteranopia (green-blind)
#375690
Tritanopia (blue-blind)
#7F425D
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7f3192;
/* rgb */ color: rgb(127, 49, 146);
/* oklch */ color: oklch(46.5% 0.164 319.2);
Tailwind
colors: {
  custom: {
    50: '#a76fb2',
    500: '#7f3192',
    950: '#000000',
  },
}
SCSS
$custom: #7f3192;
$custom-light: #a76fb2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3192",
  "rgb": {
    "r": 127,
    "g": 49,
    "b": 146
  },
  "hsl": {
    "h": 288.247,
    "s": 49.744,
    "l": 38.235
  },
  "oklch": {
    "l": 0.46536,
    "c": 0.16444,
    "h": 319.2
  },
  "luminance": 0.08784
}

Semantic roles & 50–950 ramp

primary
#7F3192
secondary
#78B669
accent
#D94F6A
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #7F3192

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

Preview Lab → · Contrast checker → · Palette generator →

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