#7F367D#7F367D

#7F367D is a mid, vivid purple. Relative luminance 0.086; OKLCH L 45.9% C 0.137 H 328.6°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#7F367D
RGBrgb(127, 54, 125)
HSLhsl(302, 40%, 35%)
HSVhsv(302, 57%, 50%)
CMYKcmyk(0%, 57.5%, 1.6%, 50.2%)
CIE-LABlab(35.27, 41.65, -25.94)
CIE-LCHlch(35.27, 49.07, 328.09°)
OKLaboklab(45.94% 0.1167 -0.0713)
OKLCHoklch(45.94% 0.137 328.6)
XYZxyz(13.7731, 8.6319, 20.3387)
Luminance0.0863 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F367D #367F38
analogous
#5C367F #7F367D #7F3658
triadic
#7F367D #7D7F36 #367D7F
tetradic
#7F367D #7F5C36 #367F38 #36587F
square
#7F367D #7F5C36 #367F38 #36587F
split-complementary
#7F367D #587F36 #367F5C
monochromatic
#291128 #542453 #7F367D #AA48A7 #C16EBF

Accessibility & contrast

On white

7.70
#7F367D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#7F367D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F367D
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F367D#FFFFFF#000000##FFFFFF
##7F367D1.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#304D7F
Deuteranopia (green-blind)
#47567B
Tritanopia (blue-blind)
#833E54
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7f367d;
/* rgb */ color: rgb(127, 54, 125);
/* oklch */ color: oklch(45.9% 0.137 328.6);
Tailwind
colors: {
  custom: {
    50: '#a671a3',
    500: '#7f367d',
    950: '#000000',
  },
}
SCSS
$custom: #7f367d;
$custom-light: #a671a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f367d",
  "rgb": {
    "r": 127,
    "g": 54,
    "b": 125
  },
  "hsl": {
    "h": 301.644,
    "s": 40.331,
    "l": 35.49
  },
  "oklch": {
    "l": 0.45938,
    "c": 0.13672,
    "h": 328.6
  },
  "luminance": 0.08631
}

Semantic roles & 50–950 ramp

primary
#7F367D
secondary
#67AA69
accent
#D05B58
background
#FAF7FA
surface
#F4EDF3
border
#CEC8CD
text
#10080F
muted
#7F7B7F

Preview Lab

Preview with #7F367D

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

Preview Lab → · Contrast checker → · Palette generator →

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