#7F2BA3#7F2BA3

#7F2BA3 is a mid, vivid purple. Relative luminance 0.089; OKLCH L 47.0% C 0.189 H 313.5°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#7F2BA3
RGBrgb(127, 43, 163)
HSLhsl(282, 58%, 40%)
HSVhsv(282, 74%, 64%)
CMYKcmyk(22.1%, 73.6%, 0%, 36.1%)
CIE-LABlab(35.76, 54.26, -48.41)
CIE-LCHlch(35.76, 72.72, 318.26°)
OKLaboklab(47.03% 0.1298 -0.1367)
OKLCHoklch(47.03% 0.189 313.5)
XYZxyz(16.2260, 8.8846, 35.5034)
Luminance0.0888 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2BA3 #4FA32B
analogous
#432BA3 #7F2BA3 #A32B8B
triadic
#7F2BA3 #A37F2B #2BA37F
tetradic
#7F2BA3 #A3432B #4FA32B #2B8BA3
square
#7F2BA3 #A3432B #4FA32B #2B8BA3
split-complementary
#7F2BA3 #8BA32B #2BA343
monochromatic
#341142 #591E73 #7F2BA3 #A23FCC #B96FD9

Accessibility & contrast

On white

7.56
#7F2BA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#7F2BA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2BA3
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2BA3#FFFFFF#000000##FFFFFF
##7F2BA31.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A6
Deuteranopia (green-blind)
#2156A0
Tritanopia (blue-blind)
#7B4565
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7f2ba3;
/* rgb */ color: rgb(127, 43, 163);
/* oklch */ color: oklch(47.0% 0.189 313.5);
Tailwind
colors: {
  custom: {
    50: '#a86dbf',
    500: '#7f2ba3',
    950: '#000000',
  },
}
SCSS
$custom: #7f2ba3;
$custom-light: #a86dbf;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2ba3",
  "rgb": {
    "r": 127,
    "g": 43,
    "b": 163
  },
  "hsl": {
    "h": 282,
    "s": 58.252,
    "l": 40.392
  },
  "oklch": {
    "l": 0.4703,
    "c": 0.18851,
    "h": 313.5
  },
  "luminance": 0.08884
}

Semantic roles & 50–950 ramp

primary
#7F2BA3
secondary
#84C06A
accent
#E14675
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F2BA3

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

Preview Lab → · Contrast checker → · Palette generator →

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