#7F299B#7F299B

#7F299B is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.3% C 0.183 H 316.4°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#7F299B
RGBrgb(127, 41, 155)
HSLhsl(285, 58%, 38%)
HSVhsv(285, 74%, 61%)
CMYKcmyk(18.1%, 73.5%, 0%, 39.2%)
CIE-LABlab(34.93, 53.40, -44.91)
CIE-LCHlch(34.93, 69.78, 319.94°)
OKLaboklab(46.27% 0.1328 -0.1264)
OKLCHoklch(46.27% 0.183 316.4)
XYZxyz(15.4608, 8.4651, 31.8235)
Luminance0.0846 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F299B #459B29
analogous
#46299B #7F299B #9B297E
triadic
#7F299B #9B7F29 #299B7F
tetradic
#7F299B #9B4629 #459B29 #297E9B
square
#7F299B #9B4629 #459B29 #297E9B
split-complementary
#7F299B #7E9B29 #299B46
monochromatic
#300F3A #571C6B #7F299B #A637CA #BC67D7

Accessibility & contrast

On white

7.80
#7F299B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#7F299B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F299B
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F299B#FFFFFF#000000##FFFFFF
##7F299B1.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f299b;
/* rgb */ color: rgb(127, 41, 155);
/* oklch */ color: oklch(46.3% 0.183 316.4);
Tailwind
colors: {
  custom: {
    50: '#a86bb9',
    500: '#7f299b',
    950: '#000000',
  },
}
SCSS
$custom: #7f299b;
$custom-light: #a86bb9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f299b",
  "rgb": {
    "r": 127,
    "g": 41,
    "b": 155
  },
  "hsl": {
    "h": 285.263,
    "s": 58.163,
    "l": 38.431
  },
  "oklch": {
    "l": 0.46267,
    "c": 0.18334,
    "h": 316.4
  },
  "luminance": 0.08464
}

Semantic roles & 50–950 ramp

primary
#7F299B
secondary
#79BD63
accent
#E1466C
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F299B

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

Preview Lab → · Contrast checker → · Palette generator →

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