#7F289F#7F289F

#7F289F is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.5% C 0.188 H 315.1°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#7F289F
RGBrgb(127, 40, 159)
HSLhsl(284, 60%, 39%)
HSVhsv(284, 75%, 62%)
CMYKcmyk(20.1%, 74.8%, 0%, 37.6%)
CIE-LABlab(35.07, 54.61, -47.11)
CIE-LCHlch(35.07, 72.12, 319.21°)
OKLaboklab(46.45% 0.1333 -0.1328)
OKLCHoklch(46.45% 0.188 315.1)
XYZxyz(15.7682, 8.5334, 33.6107)
Luminance0.0853 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F289F #489F28
analogous
#44289F #7F289F #9F2884
triadic
#7F289F #9F7F28 #289F7F
tetradic
#7F289F #9F4428 #489F28 #28849F
square
#7F289F #9F4428 #489F28 #28849F
split-complementary
#7F289F #849F28 #289F44
monochromatic
#310F3D #581C6E #7F289F #A537CD #BB68D9

Accessibility & contrast

On white

7.76
#7F289F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#7F289F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F289F
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F289F#FFFFFF#000000##FFFFFF
##7F289F1.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA2
Deuteranopia (green-blind)
#23559C
Tritanopia (blue-blind)
#7C4262
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7f289f;
/* rgb */ color: rgb(127, 40, 159);
/* oklch */ color: oklch(46.5% 0.188 315.1);
Tailwind
colors: {
  custom: {
    50: '#a86bbc',
    500: '#7f289f',
    950: '#000000',
  },
}
SCSS
$custom: #7f289f;
$custom-light: #a86bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#7f289f",
  "rgb": {
    "r": 127,
    "g": 40,
    "b": 159
  },
  "hsl": {
    "h": 283.866,
    "s": 59.799,
    "l": 39.02
  },
  "oklch": {
    "l": 0.46451,
    "c": 0.1882,
    "h": 315.1
  },
  "luminance": 0.08533
}

Semantic roles & 50–950 ramp

primary
#7F289F
secondary
#7CBF64
accent
#E3456F
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F289F

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

Preview Lab → · Contrast checker → · Palette generator →

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