#7F2AB4#7F2AB4

#7F2AB4 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.2% C 0.206 H 308.4°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#7F2AB4
RGBrgb(127, 42, 180)
HSLhsl(277, 62%, 44%)
HSVhsv(277, 77%, 71%)
CMYKcmyk(29.4%, 76.7%, 0%, 29.4%)
CIE-LABlab(36.86, 58.30, -56.79)
CIE-LCHlch(36.86, 81.39, 315.75°)
OKLaboklab(48.2% 0.1278 -0.1613)
OKLCHoklch(48.2% 0.206 308.4)
XYZxyz(17.8169, 9.4635, 44.0592)
Luminance0.0946 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2AB4 #5FB42A
analogous
#3A2AB4 #7F2AB4 #B42AA4
triadic
#7F2AB4 #B47F2A #2AB47F
tetradic
#7F2AB4 #B43A2A #5FB42A #2AA4B4
square
#7F2AB4 #B43A2A #5FB42A #2AA4B4
split-complementary
#7F2AB4 #A4B42A #2AB43A
monochromatic
#391351 #5C1E82 #7F2AB4 #9E47D4 #B879E0

Accessibility & contrast

On white

7.26
#7F2AB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#7F2AB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2AB4
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2AB4#FFFFFF#000000##FFFFFF
##7F2AB41.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B8
Deuteranopia (green-blind)
#0058B1
Tritanopia (blue-blind)
#774C6E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7f2ab4;
/* rgb */ color: rgb(127, 42, 180);
/* oklch */ color: oklch(48.2% 0.206 308.4);
Tailwind
colors: {
  custom: {
    50: '#a96dcb',
    500: '#7f2ab4',
    950: '#000000',
  },
}
SCSS
$custom: #7f2ab4;
$custom-light: #a96dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2ab4",
  "rgb": {
    "r": 127,
    "g": 42,
    "b": 180
  },
  "hsl": {
    "h": 276.957,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.48198,
    "c": 0.20579,
    "h": 308.4
  },
  "luminance": 0.09463
}

Semantic roles & 50–950 ramp

primary
#7F2AB4
secondary
#93C872
accent
#E54381
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F2AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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