#7F337D#7F337D

#7F337D is a mid, vivid purple. Relative luminance 0.084; OKLCH L 45.5% C 0.142 H 328.6°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#7F337D
RGBrgb(127, 51, 125)
HSLhsl(302, 43%, 35%)
HSVhsv(302, 60%, 50%)
CMYKcmyk(0%, 59.8%, 1.6%, 50.2%)
CIE-LABlab(34.72, 43.12, -26.79)
CIE-LCHlch(34.72, 50.77, 328.15°)
OKLaboklab(45.54% 0.1209 -0.0737)
OKLCHoklch(45.54% 0.142 328.6)
XYZxyz(13.6377, 8.3612, 20.2936)
Luminance0.0836 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F337D #337F35
analogous
#5B337F #7F337D #7F3357
triadic
#7F337D #7D7F33 #337D7F
tetradic
#7F337D #7F5B33 #337F35 #33577F
square
#7F337D #7F5B33 #337F35 #33577F
split-complementary
#7F337D #577F33 #337F5B
monochromatic
#281027 #532152 #7F337D #AB45A8 #C369C1

Accessibility & contrast

On white

7.86
#7F337D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#7F337D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F337D
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F337D#FFFFFF#000000##FFFFFF
##7F337D1.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C4B7F
Deuteranopia (green-blind)
#45557B
Tritanopia (blue-blind)
#833B53
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7f337d;
/* rgb */ color: rgb(127, 51, 125);
/* oklch */ color: oklch(45.5% 0.142 328.6);
Tailwind
colors: {
  custom: {
    50: '#a66fa3',
    500: '#7f337d',
    950: '#000000',
  },
}
SCSS
$custom: #7f337d;
$custom-light: #a66fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f337d",
  "rgb": {
    "r": 127,
    "g": 51,
    "b": 125
  },
  "hsl": {
    "h": 301.579,
    "s": 42.697,
    "l": 34.902
  },
  "oklch": {
    "l": 0.45541,
    "c": 0.14154,
    "h": 328.6
  },
  "luminance": 0.0836
}

Semantic roles & 50–950 ramp

primary
#7F337D
secondary
#63AB65
accent
#D25955
background
#FAF6FA
surface
#F4ECF3
border
#CEC7CD
text
#10080F
muted
#7F7B7F

Preview Lab

Preview with #7F337D

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

Preview Lab → · Contrast checker → · Palette generator →

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