#7F289B#7F289B

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

Color values

HEX#7F289B
RGBrgb(127, 40, 155)
HSLhsl(285, 59%, 38%)
HSVhsv(285, 74%, 61%)
CMYKcmyk(18.1%, 74.2%, 0%, 39.2%)
CIE-LABlab(34.80, 53.79, -45.13)
CIE-LCHlch(34.80, 70.22, 320.00°)
OKLaboklab(46.17% 0.1338 -0.127)
OKLCHoklch(46.17% 0.185 316.5)
XYZxyz(15.4267, 8.3968, 31.8121)
Luminance0.0840 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F289B #449B28
analogous
#45289B #7F289B #9B287D
triadic
#7F289B #9B7F28 #289B7F
tetradic
#7F289B #9B4528 #449B28 #287D9B
square
#7F289B #9B4528 #449B28 #287D9B
split-complementary
#7F289B #7D9B28 #289B45
monochromatic
#2F0F3A #571B6A #7F289B #A635CB #BC66D7

Accessibility & contrast

On white

7.84
#7F289B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#7F289B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F289B
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F289B#FFFFFF#000000##FFFFFF
##7F289B1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9E
Deuteranopia (green-blind)
#285498
Tritanopia (blue-blind)
#7D405F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7f289b;
/* rgb */ color: rgb(127, 40, 155);
/* oklch */ color: oklch(46.2% 0.184 316.5);
Tailwind
colors: {
  custom: {
    50: '#a86bb9',
    500: '#7f289b',
    950: '#000000',
  },
}
SCSS
$custom: #7f289b;
$custom-light: #a86bb9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f289b",
  "rgb": {
    "r": 127,
    "g": 40,
    "b": 155
  },
  "hsl": {
    "h": 285.391,
    "s": 58.974,
    "l": 38.235
  },
  "oklch": {
    "l": 0.46169,
    "c": 0.1845,
    "h": 316.5
  },
  "luminance": 0.08396
}

Semantic roles & 50–950 ramp

primary
#7F289B
secondary
#78BD61
accent
#E2466C
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F289B

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

Preview Lab → · Contrast checker → · Palette generator →

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