#7F209B#7F209B

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

Color values

HEX#7F209B
RGBrgb(127, 32, 155)
HSLhsl(286, 66%, 37%)
HSVhsv(286, 79%, 61%)
CMYKcmyk(18.1%, 79.4%, 0%, 39.2%)
CIE-LABlab(33.80, 56.65, -46.74)
CIE-LCHlch(33.80, 73.44, 320.48°)
OKLaboklab(45.46% 0.1411 -0.1317)
OKLCHoklch(45.46% 0.193 317)
XYZxyz(15.1844, 7.9123, 31.7314)
Luminance0.0791 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F209B #3C9B20
analogous
#41209B #7F209B #9B207A
triadic
#7F209B #9B7F20 #209B7F
tetradic
#7F209B #9B4120 #3C9B20 #207A9B
square
#7F209B #9B4120 #3C9B20 #207A9B
split-complementary
#7F209B #7A9B20 #209B41
monochromatic
#2C0B36 #551668 #7F209B #A92ACE #BF59DD

Accessibility & contrast

On white

8.13
#7F209B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7F209B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F209B
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F209B#FFFFFF#000000##FFFFFF
##7F209B1.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9E
Deuteranopia (green-blind)
#225298
Tritanopia (blue-blind)
#7D3C5D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7f209b;
/* rgb */ color: rgb(127, 32, 155);
/* oklch */ color: oklch(45.5% 0.193 317.0);
Tailwind
colors: {
  custom: {
    50: '#a867b9',
    500: '#7f209b',
    950: '#000000',
  },
}
SCSS
$custom: #7f209b;
$custom-light: #a867b9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f209b",
  "rgb": {
    "r": 127,
    "g": 32,
    "b": 155
  },
  "hsl": {
    "h": 286.341,
    "s": 65.775,
    "l": 36.667
  },
  "oklch": {
    "l": 0.45464,
    "c": 0.19303,
    "h": 317
  },
  "luminance": 0.07912
}

Semantic roles & 50–950 ramp

primary
#7F209B
secondary
#6EC156
accent
#E93F66
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F209B

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

Preview Lab → · Contrast checker → · Palette generator →

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