#7F209C#7F209C

#7F209C is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.5% C 0.194 H 316.6°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#7F209C
RGBrgb(127, 32, 156)
HSLhsl(286, 66%, 37%)
HSVhsv(286, 79%, 61%)
CMYKcmyk(18.6%, 79.5%, 0%, 38.8%)
CIE-LABlab(33.87, 56.85, -47.23)
CIE-LCHlch(33.87, 73.91, 320.28°)
OKLaboklab(45.54% 0.141 -0.1331)
OKLCHoklch(45.54% 0.194 316.6)
XYZxyz(15.2687, 7.9460, 32.1755)
Luminance0.0795 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F209C #3D9C20
analogous
#41209C #7F209C #9C207B
triadic
#7F209C #9C7F20 #209C7F
tetradic
#7F209C #9C4120 #3D9C20 #207B9C
square
#7F209C #9C4120 #3D9C20 #207B9C
split-complementary
#7F209C #7B9C20 #209C41
monochromatic
#2C0B36 #561669 #7F209C #A82ACF #BE59DD

Accessibility & contrast

On white

8.11
#7F209C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#7F209C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F209C
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F209C#FFFFFF#000000##FFFFFF
##7F209C1.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9F
Deuteranopia (green-blind)
#205299
Tritanopia (blue-blind)
#7D3C5E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7f209c;
/* rgb */ color: rgb(127, 32, 156);
/* oklch */ color: oklch(45.5% 0.194 316.6);
Tailwind
colors: {
  custom: {
    50: '#a868ba',
    500: '#7f209c',
    950: '#000000',
  },
}
SCSS
$custom: #7f209c;
$custom-light: #a868ba;
$custom-dark: #000000;
JSON
{
  "hex": "#7f209c",
  "rgb": {
    "r": 127,
    "g": 32,
    "b": 156
  },
  "hsl": {
    "h": 285.968,
    "s": 65.957,
    "l": 36.863
  },
  "oklch": {
    "l": 0.45536,
    "c": 0.1939,
    "h": 316.6
  },
  "luminance": 0.07945
}

Semantic roles & 50–950 ramp

primary
#7F209C
secondary
#70C157
accent
#E93F67
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F209C

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

Preview Lab → · Contrast checker → · Palette generator →

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