#7F319B#7F319B

#7F319B is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.1% C 0.173 H 315.8°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#7F319B
RGBrgb(127, 49, 155)
HSLhsl(284, 52%, 40%)
HSVhsv(284, 68%, 61%)
CMYKcmyk(18.1%, 68.4%, 0%, 39.2%)
CIE-LABlab(36.13, 50.03, -42.99)
CIE-LCHlch(36.13, 65.96, 319.33°)
OKLaboklab(47.12% 0.1242 -0.1208)
OKLCHoklch(47.12% 0.173 315.8)
XYZxyz(15.7662, 9.0758, 31.9253)
Luminance0.0907 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F319B #4D9B31
analogous
#4A319B #7F319B #9B3182
triadic
#7F319B #9B7F31 #319B7F
tetradic
#7F319B #9B4A31 #4D9B31 #31829B
square
#7F319B #9B4A31 #4D9B31 #31829B
split-complementary
#7F319B #829B31 #319B4A
monochromatic
#33143E #59226D #7F319B #A345C4 #BA73D3

Accessibility & contrast

On white

7.46
#7F319B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F319B
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F319B#FFFFFF#000000##FFFFFF
##7F319B1.007.462.817.46
#FFFFFF7.461.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00509E
Deuteranopia (green-blind)
#305799
Tritanopia (blue-blind)
#7D4562
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7f319b;
/* rgb */ color: rgb(127, 49, 155);
/* oklch */ color: oklch(47.1% 0.173 315.8);
Tailwind
colors: {
  custom: {
    50: '#a76fb9',
    500: '#7f319b',
    950: '#000000',
  },
}
SCSS
$custom: #7f319b;
$custom-light: #a76fb9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f319b",
  "rgb": {
    "r": 127,
    "g": 49,
    "b": 155
  },
  "hsl": {
    "h": 284.151,
    "s": 51.961,
    "l": 40
  },
  "oklch": {
    "l": 0.47122,
    "c": 0.17324,
    "h": 315.8
  },
  "luminance": 0.09075
}

Semantic roles & 50–950 ramp

primary
#7F319B
secondary
#82BB6D
accent
#DB4C72
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #7F319B

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

Preview Lab → · Contrast checker → · Palette generator →

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