#7F299D#7F299D

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

Color values

HEX#7F299D
RGBrgb(127, 41, 157)
HSLhsl(284, 59%, 39%)
HSVhsv(284, 74%, 62%)
CMYKcmyk(19.1%, 73.9%, 0%, 38.4%)
CIE-LABlab(35.07, 53.81, -45.91)
CIE-LCHlch(35.07, 70.73, 319.53°)
OKLaboklab(46.41% 0.1326 -0.1293)
OKLCHoklch(46.41% 0.185 315.7)
XYZxyz(15.6302, 8.5328, 32.7154)
Luminance0.0853 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F299D #479D29
analogous
#45299D #7F299D #9D2981
triadic
#7F299D #9D7F29 #299D7F
tetradic
#7F299D #9D4529 #479D29 #29819D
square
#7F299D #9D4529 #479D29 #29819D
split-complementary
#7F299D #819D29 #299D45
monochromatic
#30103C #581C6C #7F299D #A538CB #BB69D8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F299D#FFFFFF#000000##FFFFFF
##7F299D1.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)
#004DA0
Deuteranopia (green-blind)
#27559A
Tritanopia (blue-blind)
#7D4261
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7f299d;
/* rgb */ color: rgb(127, 41, 157);
/* oklch */ color: oklch(46.4% 0.185 315.7);
Tailwind
colors: {
  custom: {
    50: '#a86bbb',
    500: '#7f299d',
    950: '#000000',
  },
}
SCSS
$custom: #7f299d;
$custom-light: #a86bbb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f299d",
  "rgb": {
    "r": 127,
    "g": 41,
    "b": 157
  },
  "hsl": {
    "h": 284.483,
    "s": 58.586,
    "l": 38.824
  },
  "oklch": {
    "l": 0.46407,
    "c": 0.1852,
    "h": 315.7
  },
  "luminance": 0.08532
}

Semantic roles & 50–950 ramp

primary
#7F299D
secondary
#7BBE64
accent
#E2466E
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F299D

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

Preview Lab → · Contrast checker → · Palette generator →

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