#7F29A2#7F29A2

#7F29A2 is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.8% C 0.190 H 314.0°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#7F29A2
RGBrgb(127, 41, 162)
HSLhsl(283, 60%, 40%)
HSVhsv(283, 75%, 64%)
CMYKcmyk(21.6%, 74.7%, 0%, 36.5%)
CIE-LABlab(35.41, 54.84, -48.37)
CIE-LCHlch(35.41, 73.13, 318.59°)
OKLaboklab(46.76% 0.1319 -0.1365)
OKLCHoklch(46.76% 0.19 314)
XYZxyz(16.0658, 8.7071, 35.0098)
Luminance0.0871 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F29A2 #4CA229
analogous
#4329A2 #7F29A2 #A22988
triadic
#7F29A2 #A27F29 #29A27F
tetradic
#7F29A2 #A24329 #4CA229 #2988A2
square
#7F29A2 #A24329 #4CA229 #2988A2
split-complementary
#7F29A2 #88A229 #29A243
monochromatic
#321040 #591D71 #7F29A2 #A33BCD #BA6CDA

Accessibility & contrast

On white

7.66
#7F29A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#7F29A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F29A2
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F29A2#FFFFFF#000000##FFFFFF
##7F29A21.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA5
Deuteranopia (green-blind)
#20559F
Tritanopia (blue-blind)
#7C4464
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7f29a2;
/* rgb */ color: rgb(127, 41, 162);
/* oklch */ color: oklch(46.8% 0.190 314.0);
Tailwind
colors: {
  custom: {
    50: '#a86cbe',
    500: '#7f29a2',
    950: '#000000',
  },
}
SCSS
$custom: #7f29a2;
$custom-light: #a86cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#7f29a2",
  "rgb": {
    "r": 127,
    "g": 41,
    "b": 162
  },
  "hsl": {
    "h": 282.645,
    "s": 59.606,
    "l": 39.804
  },
  "oklch": {
    "l": 0.46761,
    "c": 0.18987,
    "h": 314
  },
  "luminance": 0.08707
}

Semantic roles & 50–950 ramp

primary
#7F29A2
secondary
#80C067
accent
#E34573
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F29A2

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

Preview Lab → · Contrast checker → · Palette generator →

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