#7F209E#7F209E

#7F209E is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.7% C 0.196 H 316.0°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#7F209E
RGBrgb(127, 32, 158)
HSLhsl(285, 66%, 37%)
HSVhsv(285, 80%, 62%)
CMYKcmyk(19.6%, 79.7%, 0%, 38%)
CIE-LABlab(34.01, 57.24, -48.22)
CIE-LCHlch(34.01, 74.84, 319.89°)
OKLaboklab(45.68% 0.1406 -0.136)
OKLCHoklch(45.68% 0.196 316)
XYZxyz(15.4395, 8.0143, 33.0748)
Luminance0.0801 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F209E #3F9E20
analogous
#40209E #7F209E #9E207E
triadic
#7F209E #9E7F20 #209E7F
tetradic
#7F209E #9E4020 #3F9E20 #207E9E
square
#7F209E #9E4020 #3F9E20 #207E9E
split-complementary
#7F209E #7E9E20 #209E40
monochromatic
#2D0B38 #56166B #7F209E #A82AD1 #BD5BDE

Accessibility & contrast

On white

8.07
#7F209E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F209E
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F209E#FFFFFF#000000##FFFFFF
##7F209E1.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f209e;
/* rgb */ color: rgb(127, 32, 158);
/* oklch */ color: oklch(45.7% 0.196 316.0);
Tailwind
colors: {
  custom: {
    50: '#a868bb',
    500: '#7f209e',
    950: '#000000',
  },
}
SCSS
$custom: #7f209e;
$custom-light: #a868bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f209e",
  "rgb": {
    "r": 127,
    "g": 32,
    "b": 158
  },
  "hsl": {
    "h": 285.238,
    "s": 66.316,
    "l": 37.255
  },
  "oklch": {
    "l": 0.45682,
    "c": 0.19566,
    "h": 316
  },
  "luminance": 0.08014
}

Semantic roles & 50–950 ramp

primary
#7F209E
secondary
#72C258
accent
#E93F69
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F209E

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

Preview Lab → · Contrast checker → · Palette generator →

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