#7F3C8A#7F3C8A

#7F3C8A is a mid, vivid purple. Relative luminance 0.096; OKLCH L 47.5% C 0.140 H 321.8°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#7F3C8A
RGBrgb(127, 60, 138)
HSLhsl(292, 39%, 39%)
HSVhsv(292, 57%, 54%)
CMYKcmyk(8%, 56.5%, 0%, 45.9%)
CIE-LABlab(37.08, 41.15, -31.12)
CIE-LCHlch(37.08, 51.60, 322.90°)
OKLaboklab(47.49% 0.1097 -0.0863)
OKLCHoklch(47.49% 0.14 321.8)
XYZxyz(14.9552, 9.5794, 25.1011)
Luminance0.0958 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3C8A #478A3C
analogous
#583C8A #7F3C8A #8A3C6E
triadic
#7F3C8A #8A7F3C #3C8A7F
tetradic
#7F3C8A #8A583C #478A3C #3C6E8A
square
#7F3C8A #8A583C #478A3C #3C6E8A
split-complementary
#7F3C8A #6E8A3C #3C8A58
monochromatic
#301735 #58295F #7F3C8A #A550B3 #BB7BC6

Accessibility & contrast

On white

7.20
#7F3C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#7F3C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F3C8A
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3C8A#FFFFFF#000000##FFFFFF
##7F3C8A1.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E528D
Deuteranopia (green-blind)
#455A88
Tritanopia (blue-blind)
#80475D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7f3c8a;
/* rgb */ color: rgb(127, 60, 138);
/* oklch */ color: oklch(47.5% 0.140 321.8);
Tailwind
colors: {
  custom: {
    50: '#a675ac',
    500: '#7f3c8a',
    950: '#000000',
  },
}
SCSS
$custom: #7f3c8a;
$custom-light: #a675ac;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3c8a",
  "rgb": {
    "r": 127,
    "g": 60,
    "b": 138
  },
  "hsl": {
    "h": 291.538,
    "s": 39.394,
    "l": 38.824
  },
  "oklch": {
    "l": 0.47487,
    "c": 0.13957,
    "h": 321.8
  },
  "luminance": 0.09579
}

Semantic roles & 50–950 ramp

primary
#7F3C8A
secondary
#7BAF73
accent
#CF5969
background
#FAF7FA
surface
#F4EDF4
border
#CEC8CE
text
#100810
muted
#7F7B7F

Preview Lab

Preview with #7F3C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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