#7F337E#7F337E

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

Color values

HEX#7F337E
RGBrgb(127, 51, 126)
HSLhsl(301, 43%, 35%)
HSVhsv(301, 60%, 50%)
CMYKcmyk(0%, 59.8%, 0.8%, 50.2%)
CIE-LABlab(34.78, 43.31, -27.33)
CIE-LCHlch(34.78, 51.21, 327.75°)
OKLaboklab(45.6% 0.121 -0.0752)
OKLCHoklch(45.6% 0.142 328.1)
XYZxyz(13.7019, 8.3869, 20.6318)
Luminance0.0839 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F337E #337F34
analogous
#5A337F #7F337E #7F3358
triadic
#7F337E #7E7F33 #337E7F
tetradic
#7F337E #7F5A33 #337F34 #33587F
square
#7F337E #7F5A33 #337F34 #33587F
split-complementary
#7F337E #587F33 #337F5A
monochromatic
#281027 #532153 #7F337E #AB45A9 #C369C2

Accessibility & contrast

On white

7.84
#7F337E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#7F337E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F337E
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F337E#FFFFFF#000000##FFFFFF
##7F337E1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B4B80
Deuteranopia (green-blind)
#45557C
Tritanopia (blue-blind)
#833C53
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7f337e;
/* rgb */ color: rgb(127, 51, 126);
/* oklch */ color: oklch(45.6% 0.142 328.1);
Tailwind
colors: {
  custom: {
    50: '#a670a3',
    500: '#7f337e',
    950: '#000000',
  },
}
SCSS
$custom: #7f337e;
$custom-light: #a670a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f337e",
  "rgb": {
    "r": 127,
    "g": 51,
    "b": 126
  },
  "hsl": {
    "h": 300.789,
    "s": 42.697,
    "l": 34.902
  },
  "oklch": {
    "l": 0.45596,
    "c": 0.14246,
    "h": 328.1
  },
  "luminance": 0.08386
}

Semantic roles & 50–950 ramp

primary
#7F337E
secondary
#63AB64
accent
#D25755
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#10080F
muted
#7F7B7F

Preview Lab

Preview with #7F337E

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

Preview Lab → · Contrast checker → · Palette generator →

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