#7F2AB7#7F2AB7

#7F2AB7 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.4% C 0.209 H 307.6°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#7F2AB7
RGBrgb(127, 42, 183)
HSLhsl(276, 63%, 44%)
HSVhsv(276, 77%, 72%)
CMYKcmyk(30.6%, 77%, 0%, 28.2%)
CIE-LABlab(37.09, 58.96, -58.19)
CIE-LCHlch(37.09, 82.84, 315.37°)
OKLaboklab(48.43% 0.1272 -0.1654)
OKLCHoklch(48.43% 0.209 307.6)
XYZxyz(18.1258, 9.5871, 45.6862)
Luminance0.0959 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2AB7 #62B72A
analogous
#382AB7 #7F2AB7 #B72AA9
triadic
#7F2AB7 #B77F2A #2AB77F
tetradic
#7F2AB7 #B7382A #62B72A #2AA9B7
square
#7F2AB7 #B7382A #62B72A #2AA9B7
split-complementary
#7F2AB7 #A9B72A #2AB738
monochromatic
#3A1353 #5C1F85 #7F2AB7 #9E49D5 #B87BE1

Accessibility & contrast

On white

7.20
#7F2AB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#7F2AB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2AB7
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2AB7#FFFFFF#000000##FFFFFF
##7F2AB71.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BB
Deuteranopia (green-blind)
#0058B4
Tritanopia (blue-blind)
#764D70
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7f2ab7;
/* rgb */ color: rgb(127, 42, 183);
/* oklch */ color: oklch(48.4% 0.209 307.6);
Tailwind
colors: {
  custom: {
    50: '#a96dcd',
    500: '#7f2ab7',
    950: '#000000',
  },
}
SCSS
$custom: #7f2ab7;
$custom-light: #a96dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2ab7",
  "rgb": {
    "r": 127,
    "g": 42,
    "b": 183
  },
  "hsl": {
    "h": 276.17,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.4843,
    "c": 0.20865,
    "h": 307.6
  },
  "luminance": 0.09587
}

Semantic roles & 50–950 ramp

primary
#7F2AB7
secondary
#96C974
accent
#E64283
background
#FAF6FC
surface
#F5ECF9
border
#CFC7D2
text
#110814
muted
#807B82

Preview Lab

Preview with #7F2AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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