#7F2CB6#7F2CB6

#7F2CB6 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.5% C 0.206 H 307.7°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#7F2CB6
RGBrgb(127, 44, 182)
HSLhsl(276, 61%, 44%)
HSVhsv(276, 76%, 71%)
CMYKcmyk(30.2%, 75.8%, 0%, 28.6%)
CIE-LABlab(37.28, 57.97, -57.29)
CIE-LCHlch(37.28, 81.50, 315.34°)
OKLaboklab(48.54% 0.1256 -0.1628)
OKLCHoklch(48.54% 0.206 307.7)
XYZxyz(18.0948, 9.6910, 45.1642)
Luminance0.0969 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2CB6 #63B62C
analogous
#3A2CB6 #7F2CB6 #B62CA8
triadic
#7F2CB6 #B67F2C #2CB67F
tetradic
#7F2CB6 #B63A2C #63B62C #2CA8B6
square
#7F2CB6 #B63A2C #63B62C #2CA8B6
split-complementary
#7F2CB6 #A8B62C #2CB63A
monochromatic
#3A1453 #5D2085 #7F2CB6 #9D4CD4 #B87DE0

Accessibility & contrast

On white

7.15
#7F2CB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F2CB6
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2CB6#FFFFFF#000000##FFFFFF
##7F2CB61.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BA
Deuteranopia (green-blind)
#0058B3
Tritanopia (blue-blind)
#764E70
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7f2cb6;
/* rgb */ color: rgb(127, 44, 182);
/* oklch */ color: oklch(48.5% 0.206 307.7);
Tailwind
colors: {
  custom: {
    50: '#a96ecd',
    500: '#7f2cb6',
    950: '#000000',
  },
}
SCSS
$custom: #7f2cb6;
$custom-light: #a96ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2cb6",
  "rgb": {
    "r": 127,
    "g": 44,
    "b": 182
  },
  "hsl": {
    "h": 276.087,
    "s": 61.062,
    "l": 44.314
  },
  "oklch": {
    "l": 0.48541,
    "c": 0.20561,
    "h": 307.7
  },
  "luminance": 0.09691
}

Semantic roles & 50–950 ramp

primary
#7F2CB6
secondary
#97C876
accent
#E44484
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7F2CB6

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

Preview Lab → · Contrast checker → · Palette generator →

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