#7F2AB6#7F2AB6

#7F2AB6 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.4% C 0.208 H 307.8°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#7F2AB6
RGBrgb(127, 42, 182)
HSLhsl(276, 63%, 44%)
HSVhsv(276, 77%, 71%)
CMYKcmyk(30.2%, 76.9%, 0%, 28.6%)
CIE-LABlab(37.01, 58.74, -57.73)
CIE-LCHlch(37.01, 82.36, 315.50°)
OKLaboklab(48.35% 0.1274 -0.164)
OKLCHoklch(48.35% 0.208 307.8)
XYZxyz(18.0221, 9.5456, 45.1400)
Luminance0.0954 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2AB6 #61B62A
analogous
#392AB6 #7F2AB6 #B62AA7
triadic
#7F2AB6 #B67F2A #2AB67F
tetradic
#7F2AB6 #B6392A #61B62A #2AA7B6
square
#7F2AB6 #B6392A #61B62A #2AA7B6
split-complementary
#7F2AB6 #A7B62A #2AB639
monochromatic
#3A1353 #5C1F84 #7F2AB6 #9E48D5 #B87AE0

Accessibility & contrast

On white

7.22
#7F2AB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#7F2AB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2AB6
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2AB6#FFFFFF#000000##FFFFFF
##7F2AB61.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BA
Deuteranopia (green-blind)
#0058B3
Tritanopia (blue-blind)
#764D6F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7f2ab6;
/* rgb */ color: rgb(127, 42, 182);
/* oklch */ color: oklch(48.4% 0.208 307.8);
Tailwind
colors: {
  custom: {
    50: '#a96dcd',
    500: '#7f2ab6',
    950: '#000000',
  },
}
SCSS
$custom: #7f2ab6;
$custom-light: #a96dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2ab6",
  "rgb": {
    "r": 127,
    "g": 42,
    "b": 182
  },
  "hsl": {
    "h": 276.429,
    "s": 62.5,
    "l": 43.922
  },
  "oklch": {
    "l": 0.48352,
    "c": 0.2077,
    "h": 307.8
  },
  "luminance": 0.09545
}

Semantic roles & 50–950 ramp

primary
#7F2AB6
secondary
#95C873
accent
#E64282
background
#FAF6FC
surface
#F5ECF9
border
#CFC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7F2AB6

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

Preview Lab → · Contrast checker → · Palette generator →

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