#7F2ABD#7F2ABD

#7F2ABD is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.9% C 0.214 H 305.9°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#7F2ABD
RGBrgb(127, 42, 189)
HSLhsl(275, 64%, 45%)
HSVhsv(275, 78%, 74%)
CMYKcmyk(32.8%, 77.8%, 0%, 25.9%)
CIE-LABlab(37.56, 60.28, -60.97)
CIE-LCHlch(37.56, 85.74, 314.68°)
OKLaboklab(48.9% 0.1258 -0.1736)
OKLCHoklch(48.9% 0.214 305.9)
XYZxyz(18.7636, 9.8422, 49.0455)
Luminance0.0984 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2ABD #68BD2A
analogous
#362ABD #7F2ABD #BD2AB1
triadic
#7F2ABD #BD7F2A #2ABD7F
tetradic
#7F2ABD #BD362A #68BD2A #2AB1BD
square
#7F2ABD #BD362A #68BD2A #2AB1BD
split-complementary
#7F2ABD #B1BD2A #2ABD36
monochromatic
#3C1459 #5D1F8B #7F2ABD #9D4DD7 #B87FE3

Accessibility & contrast

On white

7.07
#7F2ABD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#7F2ABD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2ABD
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2ABD#FFFFFF#000000##FFFFFF
##7F2ABD1.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C1
Deuteranopia (green-blind)
#0059BA
Tritanopia (blue-blind)
#745073
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7f2abd;
/* rgb */ color: rgb(127, 42, 189);
/* oklch */ color: oklch(48.9% 0.214 305.9);
Tailwind
colors: {
  custom: {
    50: '#aa6dd2',
    500: '#7f2abd',
    950: '#000000',
  },
}
SCSS
$custom: #7f2abd;
$custom-light: #aa6dd2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2abd",
  "rgb": {
    "r": 127,
    "g": 42,
    "b": 189
  },
  "hsl": {
    "h": 274.694,
    "s": 63.636,
    "l": 45.294
  },
  "oklch": {
    "l": 0.48903,
    "c": 0.21436,
    "h": 305.9
  },
  "luminance": 0.09842
}

Semantic roles & 50–950 ramp

primary
#7F2ABD
secondary
#9BCB78
accent
#E74187
background
#FBF6FD
surface
#F6ECFA
border
#D0C7D3
text
#110814
muted
#807B83

Preview Lab

Preview with #7F2ABD

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

Preview Lab → · Contrast checker → · Palette generator →

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