#7F2ABA#7F2ABA

#7F2ABA is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.7% C 0.212 H 306.7°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#7F2ABA
RGBrgb(127, 42, 186)
HSLhsl(275, 63%, 45%)
HSVhsv(275, 77%, 73%)
CMYKcmyk(31.7%, 77.4%, 0%, 27.1%)
CIE-LABlab(37.32, 59.62, -59.59)
CIE-LCHlch(37.32, 84.29, 315.02°)
OKLaboklab(48.67% 0.1265 -0.1695)
OKLCHoklch(48.67% 0.212 306.7)
XYZxyz(18.4414, 9.7133, 47.3482)
Luminance0.0971 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2ABA #65BA2A
analogous
#372ABA #7F2ABA #BA2AAD
triadic
#7F2ABA #BA7F2A #2ABA7F
tetradic
#7F2ABA #BA372A #65BA2A #2AADBA
square
#7F2ABA #BA372A #65BA2A #2AADBA
split-complementary
#7F2ABA #ADBA2A #2ABA37
monochromatic
#3B1356 #5D1F88 #7F2ABA #9D4BD6 #B87DE2

Accessibility & contrast

On white

7.14
#7F2ABA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#7F2ABA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2ABA
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2ABA#FFFFFF#000000##FFFFFF
##7F2ABA1.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BE
Deuteranopia (green-blind)
#0058B7
Tritanopia (blue-blind)
#754F71
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7f2aba;
/* rgb */ color: rgb(127, 42, 186);
/* oklch */ color: oklch(48.7% 0.212 306.7);
Tailwind
colors: {
  custom: {
    50: '#aa6dd0',
    500: '#7f2aba',
    950: '#000000',
  },
}
SCSS
$custom: #7f2aba;
$custom-light: #aa6dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2aba",
  "rgb": {
    "r": 127,
    "g": 42,
    "b": 186
  },
  "hsl": {
    "h": 275.417,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48666,
    "c": 0.21151,
    "h": 306.7
  },
  "luminance": 0.09713
}

Semantic roles & 50–950 ramp

primary
#7F2ABA
secondary
#98CA76
accent
#E64285
background
#FAF6FC
surface
#F5ECF9
border
#CFC7D2
text
#110814
muted
#807B82

Preview Lab

Preview with #7F2ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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