#7F3D8A#7F3D8A

#7F3D8A is a mid, vivid purple. Relative luminance 0.097; OKLCH L 47.6% C 0.138 H 321.7°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#7F3D8A
RGBrgb(127, 61, 138)
HSLhsl(291, 39%, 39%)
HSVhsv(291, 56%, 54%)
CMYKcmyk(8%, 55.8%, 0%, 45.9%)
CIE-LABlab(37.27, 40.63, -30.81)
CIE-LCHlch(37.27, 50.99, 322.82°)
OKLaboklab(47.63% 0.1083 -0.0854)
OKLCHoklch(47.63% 0.138 321.7)
XYZxyz(15.0081, 9.6852, 25.1187)
Luminance0.0968 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3D8A #488A3D
analogous
#593D8A #7F3D8A #8A3D6F
triadic
#7F3D8A #8A7F3D #3D8A7F
tetradic
#7F3D8A #8A593D #488A3D #3D6F8A
square
#7F3D8A #8A593D #488A3D #3D6F8A
split-complementary
#7F3D8A #6F8A3D #3D8A59
monochromatic
#311735 #582A60 #7F3D8A #A552B2 #BB7CC5

Accessibility & contrast

On white

7.15
#7F3D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#7F3D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F3D8A
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3D8A#FFFFFF#000000##FFFFFF
##7F3D8A1.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#30538C
Deuteranopia (green-blind)
#455A88
Tritanopia (blue-blind)
#80485D
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7f3d8a;
/* rgb */ color: rgb(127, 61, 138);
/* oklch */ color: oklch(47.6% 0.138 321.7);
Tailwind
colors: {
  custom: {
    50: '#a676ac',
    500: '#7f3d8a',
    950: '#000000',
  },
}
SCSS
$custom: #7f3d8a;
$custom-light: #a676ac;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3d8a",
  "rgb": {
    "r": 127,
    "g": 61,
    "b": 138
  },
  "hsl": {
    "h": 291.429,
    "s": 38.693,
    "l": 39.02
  },
  "oklch": {
    "l": 0.47629,
    "c": 0.13791,
    "h": 321.7
  },
  "luminance": 0.09684
}

Semantic roles & 50–950 ramp

primary
#7F3D8A
secondary
#7CAF74
accent
#CF596A
background
#FAF7FA
surface
#F4EDF4
border
#CEC8CE
text
#100910
muted
#7F7B7F

Preview Lab

Preview with #7F3D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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