#7F319A#7F319A

#7F319A is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.1% C 0.172 H 316.2°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#7F319A
RGBrgb(127, 49, 154)
HSLhsl(285, 52%, 40%)
HSVhsv(285, 68%, 60%)
CMYKcmyk(17.5%, 68.2%, 0%, 39.6%)
CIE-LABlab(36.07, 49.82, -42.49)
CIE-LCHlch(36.07, 65.47, 319.54°)
OKLaboklab(47.06% 0.1242 -0.1193)
OKLCHoklch(47.06% 0.172 316.2)
XYZxyz(15.6825, 9.0423, 31.4848)
Luminance0.0904 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F319A #4C9A31
analogous
#4A319A #7F319A #9A3181
triadic
#7F319A #9A7F31 #319A7F
tetradic
#7F319A #9A4A31 #4C9A31 #31819A
square
#7F319A #9A4A31 #4C9A31 #31819A
split-complementary
#7F319A #819A31 #319A4A
monochromatic
#32133D #59226C #7F319A #A345C4 #BA73D2

Accessibility & contrast

On white

7.48
#7F319A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#7F319A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F319A
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F319A#FFFFFF#000000##FFFFFF
##7F319A1.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00509D
Deuteranopia (green-blind)
#315798
Tritanopia (blue-blind)
#7D4561
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7f319a;
/* rgb */ color: rgb(127, 49, 154);
/* oklch */ color: oklch(47.1% 0.172 316.2);
Tailwind
colors: {
  custom: {
    50: '#a76fb8',
    500: '#7f319a',
    950: '#000000',
  },
}
SCSS
$custom: #7f319a;
$custom-light: #a76fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f319a",
  "rgb": {
    "r": 127,
    "g": 49,
    "b": 154
  },
  "hsl": {
    "h": 284.571,
    "s": 51.724,
    "l": 39.804
  },
  "oklch": {
    "l": 0.47055,
    "c": 0.17226,
    "h": 316.2
  },
  "luminance": 0.09042
}

Semantic roles & 50–950 ramp

primary
#7F319A
secondary
#80BA6C
accent
#DB4D71
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #7F319A

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

Preview Lab → · Contrast checker → · Palette generator →

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