#7F2BA2#7F2BA2

#7F2BA2 is a mid, vivid purple. Relative luminance 0.088; OKLCH L 47.0% C 0.188 H 313.9°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#7F2BA2
RGBrgb(127, 43, 162)
HSLhsl(282, 58%, 40%)
HSVhsv(282, 73%, 64%)
CMYKcmyk(21.6%, 73.5%, 0%, 36.5%)
CIE-LABlab(35.69, 54.05, -47.92)
CIE-LCHlch(35.69, 72.24, 318.44°)
OKLaboklab(46.96% 0.13 -0.1352)
OKLCHoklch(46.96% 0.188 313.9)
XYZxyz(16.1367, 8.8489, 35.0334)
Luminance0.0885 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2BA2 #4EA22B
analogous
#432BA2 #7F2BA2 #A22B89
triadic
#7F2BA2 #A27F2B #2BA27F
tetradic
#7F2BA2 #A2432B #4EA22B #2B89A2
square
#7F2BA2 #A2432B #4EA22B #2B89A2
split-complementary
#7F2BA2 #89A22B #2BA243
monochromatic
#331141 #591E72 #7F2BA2 #A23ECC #BA6FD9

Accessibility & contrast

On white

7.58
#7F2BA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#7F2BA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2BA2
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2BA2#FFFFFF#000000##FFFFFF
##7F2BA21.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA5
Deuteranopia (green-blind)
#22569F
Tritanopia (blue-blind)
#7C4564
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7f2ba2;
/* rgb */ color: rgb(127, 43, 162);
/* oklch */ color: oklch(47.0% 0.188 313.9);
Tailwind
colors: {
  custom: {
    50: '#a86dbe',
    500: '#7f2ba2',
    950: '#000000',
  },
}
SCSS
$custom: #7f2ba2;
$custom-light: #a86dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2ba2",
  "rgb": {
    "r": 127,
    "g": 43,
    "b": 162
  },
  "hsl": {
    "h": 282.353,
    "s": 58.049,
    "l": 40.196
  },
  "oklch": {
    "l": 0.46958,
    "c": 0.18756,
    "h": 313.9
  },
  "luminance": 0.08848
}

Semantic roles & 50–950 ramp

primary
#7F2BA2
secondary
#83C069
accent
#E14774
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F2BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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