#7F209D#7F209D

#7F209D is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.6% C 0.195 H 316.3°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#7F209D
RGBrgb(127, 32, 157)
HSLhsl(286, 66%, 37%)
HSVhsv(286, 80%, 62%)
CMYKcmyk(19.1%, 79.6%, 0%, 38.4%)
CIE-LABlab(33.94, 57.05, -47.72)
CIE-LCHlch(33.94, 74.38, 320.08°)
OKLaboklab(45.61% 0.1408 -0.1346)
OKLCHoklch(45.61% 0.195 316.3)
XYZxyz(15.3538, 7.9800, 32.6233)
Luminance0.0798 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F209D #3E9D20
analogous
#41209D #7F209D #9D207D
triadic
#7F209D #9D7F20 #209D7F
tetradic
#7F209D #9D4120 #3E9D20 #207D9D
square
#7F209D #9D4120 #3E9D20 #207D9D
split-complementary
#7F209D #7D9D20 #209D41
monochromatic
#2D0B37 #56166A #7F209D #A82AD0 #BE5ADD

Accessibility & contrast

On white

8.09
#7F209D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#7F209D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F209D
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F209D#FFFFFF#000000##FFFFFF
##7F209D1.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA0
Deuteranopia (green-blind)
#1F529A
Tritanopia (blue-blind)
#7D3D5F
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7f209d;
/* rgb */ color: rgb(127, 32, 157);
/* oklch */ color: oklch(45.6% 0.195 316.3);
Tailwind
colors: {
  custom: {
    50: '#a868bb',
    500: '#7f209d',
    950: '#000000',
  },
}
SCSS
$custom: #7f209d;
$custom-light: #a868bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f209d",
  "rgb": {
    "r": 127,
    "g": 32,
    "b": 157
  },
  "hsl": {
    "h": 285.6,
    "s": 66.138,
    "l": 37.059
  },
  "oklch": {
    "l": 0.45609,
    "c": 0.19477,
    "h": 316.3
  },
  "luminance": 0.07979
}

Semantic roles & 50–950 ramp

primary
#7F209D
secondary
#71C157
accent
#E93F68
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F209D

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

Preview Lab → · Contrast checker → · Palette generator →

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