#7F289A#7F289A

#7F289A is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.1% C 0.184 H 316.8°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#7F289A
RGBrgb(127, 40, 154)
HSLhsl(286, 59%, 38%)
HSVhsv(286, 74%, 60%)
CMYKcmyk(17.5%, 74%, 0%, 39.6%)
CIE-LABlab(34.73, 53.59, -44.63)
CIE-LCHlch(34.73, 69.74, 320.21°)
OKLaboklab(46.1% 0.1339 -0.1256)
OKLCHoklch(46.1% 0.184 316.8)
XYZxyz(15.3430, 8.3633, 31.3717)
Luminance0.0836 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F289A #439A28
analogous
#46289A #7F289A #9A287C
triadic
#7F289A #9A7F28 #289A7F
tetradic
#7F289A #9A4628 #439A28 #287C9A
square
#7F289A #9A4628 #439A28 #287C9A
split-complementary
#7F289A #7C9A28 #289A46
monochromatic
#2F0F39 #571B69 #7F289A #A735CA #BC65D7

Accessibility & contrast

On white

7.86
#7F289A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#7F289A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F289A
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F289A#FFFFFF#000000##FFFFFF
##7F289A1.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9D
Deuteranopia (green-blind)
#295497
Tritanopia (blue-blind)
#7E405F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7f289a;
/* rgb */ color: rgb(127, 40, 154);
/* oklch */ color: oklch(46.1% 0.184 316.8);
Tailwind
colors: {
  custom: {
    50: '#a86bb8',
    500: '#7f289a',
    950: '#000000',
  },
}
SCSS
$custom: #7f289a;
$custom-light: #a86bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f289a",
  "rgb": {
    "r": 127,
    "g": 40,
    "b": 154
  },
  "hsl": {
    "h": 285.789,
    "s": 58.763,
    "l": 38.039
  },
  "oklch": {
    "l": 0.461,
    "c": 0.18358,
    "h": 316.8
  },
  "luminance": 0.08363
}

Semantic roles & 50–950 ramp

primary
#7F289A
secondary
#77BD61
accent
#E2466B
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F289A

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

Preview Lab → · Contrast checker → · Palette generator →

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