#7F2399#7F2399

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

Color values

HEX#7F2399
RGBrgb(127, 35, 153)
HSLhsl(287, 63%, 37%)
HSVhsv(287, 77%, 60%)
CMYKcmyk(17%, 77.1%, 0%, 40%)
CIE-LABlab(34.01, 55.24, -45.18)
CIE-LCHlch(34.01, 71.36, 320.72°)
OKLaboklab(45.57% 0.1388 -0.1271)
OKLCHoklch(45.57% 0.188 317.5)
XYZxyz(15.1024, 8.0147, 30.8823)
Luminance0.0801 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2399 #3D9923
analogous
#442399 #7F2399 #992378
triadic
#7F2399 #997F23 #23997F
tetradic
#7F2399 #994423 #3D9923 #237899
square
#7F2399 #994423 #3D9923 #237899
split-complementary
#7F2399 #789923 #239944
monochromatic
#2C0C35 #561867 #7F2399 #A82ECB #BE5DDA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F2399#FFFFFF#000000##FFFFFF
##7F23991.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)
#004A9C
Deuteranopia (green-blind)
#265396
Tritanopia (blue-blind)
#7E3D5D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7f2399;
/* rgb */ color: rgb(127, 35, 153);
/* oklch */ color: oklch(45.6% 0.188 317.5);
Tailwind
colors: {
  custom: {
    50: '#a869b8',
    500: '#7f2399',
    950: '#000000',
  },
}
SCSS
$custom: #7f2399;
$custom-light: #a869b8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2399",
  "rgb": {
    "r": 127,
    "g": 35,
    "b": 153
  },
  "hsl": {
    "h": 286.78,
    "s": 62.766,
    "l": 36.863
  },
  "oklch": {
    "l": 0.45571,
    "c": 0.18822,
    "h": 317.5
  },
  "luminance": 0.08014
}

Semantic roles & 50–950 ramp

primary
#7F2399
secondary
#70BE59
accent
#E64266
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F2399

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

Preview Lab → · Contrast checker → · Palette generator →

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