#7F207B#7F207B

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

Color values

HEX#7F207B
RGBrgb(127, 32, 123)
HSLhsl(303, 60%, 31%)
HSVhsv(303, 75%, 50%)
CMYKcmyk(0%, 74.8%, 3.1%, 50.2%)
CIE-LABlab(31.75, 50.75, -30.22)
CIE-LCHlch(31.75, 59.07, 329.23°)
OKLaboklab(43.35% 0.1435 -0.0834)
OKLCHoklch(43.35% 0.166 329.8)
XYZxyz(12.8440, 6.9761, 19.4051)
Luminance0.0698 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F207B #207F24
analogous
#53207F #7F207B #7F204B
triadic
#7F207B #7B7F20 #207B7F
tetradic
#7F207B #7F5320 #207F24 #204B7F
square
#7F207B #7F5320 #207F24 #204B7F
split-complementary
#7F207B #4B7F20 #207F53
monochromatic
#1D071C #4E144C #7F207B #B02CAA #D148CB

Accessibility & contrast

On white

8.77
#7F207B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F207B
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F207B#FFFFFF#000000##FFFFFF
##7F207B1.008.772.408.77
#FFFFFF8.771.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14437D
Deuteranopia (green-blind)
#3C4F79
Tritanopia (blue-blind)
#842D4B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7f207b;
/* rgb */ color: rgb(127, 32, 123);
/* oklch */ color: oklch(43.4% 0.166 329.8);
Tailwind
colors: {
  custom: {
    50: '#a766a1',
    500: '#7f207b',
    950: '#000000',
  },
}
SCSS
$custom: #7f207b;
$custom-light: #a766a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f207b",
  "rgb": {
    "r": 127,
    "g": 32,
    "b": 123
  },
  "hsl": {
    "h": 302.526,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.43354,
    "c": 0.16598,
    "h": 329.8
  },
  "luminance": 0.06975
}

Semantic roles & 50–950 ramp

primary
#7F207B
secondary
#49B24D
accent
#E34C45
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F207B

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

Preview Lab → · Contrast checker → · Palette generator →

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