#7F207C#7F207C

#7F207C is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.4% C 0.167 H 329.4°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#7F207C
RGBrgb(127, 32, 124)
HSLhsl(302, 60%, 31%)
HSVhsv(302, 75%, 50%)
CMYKcmyk(0%, 74.8%, 2.4%, 50.2%)
CIE-LABlab(31.81, 50.92, -30.76)
CIE-LCHlch(31.81, 59.49, 328.87°)
OKLaboklab(43.41% 0.1435 -0.085)
OKLCHoklch(43.41% 0.167 329.4)
XYZxyz(12.9069, 7.0013, 19.7365)
Luminance0.0700 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F207C #207F23
analogous
#52207F #7F207C #7F204C
triadic
#7F207C #7C7F20 #207C7F
tetradic
#7F207C #7F5220 #207F23 #204C7F
square
#7F207C #7F5220 #207F23 #204C7F
split-complementary
#7F207C #4C7F20 #207F52
monochromatic
#1D071D #4E144C #7F207C #B02CAC #D148CD

Accessibility & contrast

On white

8.75
#7F207C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#7F207C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F207C
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F207C#FFFFFF#000000##FFFFFF
##7F207C1.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12437F
Deuteranopia (green-blind)
#3B4F7A
Tritanopia (blue-blind)
#842D4C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7f207c;
/* rgb */ color: rgb(127, 32, 124);
/* oklch */ color: oklch(43.4% 0.167 329.4);
Tailwind
colors: {
  custom: {
    50: '#a766a2',
    500: '#7f207c',
    950: '#000000',
  },
}
SCSS
$custom: #7f207c;
$custom-light: #a766a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f207c",
  "rgb": {
    "r": 127,
    "g": 32,
    "b": 124
  },
  "hsl": {
    "h": 301.895,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.43414,
    "c": 0.16679,
    "h": 329.4
  },
  "luminance": 0.07
}

Semantic roles & 50–950 ramp

primary
#7F207C
secondary
#49B24C
accent
#E34A45
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F207C

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

Preview Lab → · Contrast checker → · Palette generator →

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