#7F2BC7#7F2BC7

#7F2BC7 is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.8% C 0.223 H 303.3°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#7F2BC7
RGBrgb(127, 43, 199)
HSLhsl(272, 64%, 47%)
HSVhsv(272, 78%, 78%)
CMYKcmyk(36.2%, 78.4%, 0%, 22%)
CIE-LABlab(38.49, 62.15, -65.31)
CIE-LCHlch(38.49, 90.16, 313.58°)
OKLaboklab(49.8% 0.1225 -0.1863)
OKLCHoklch(49.8% 0.223 303.3)
XYZxyz(19.9226, 10.3633, 54.9725)
Luminance0.1036 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2BC7 #73C72B
analogous
#312BC7 #7F2BC7 #C72BC1
triadic
#7F2BC7 #C77F2B #2BC77F
tetradic
#7F2BC7 #C7312B #73C72B #2BC1C7
square
#7F2BC7 #C7312B #73C72B #2BC1C7
split-complementary
#7F2BC7 #C1C72B #2BC731
monochromatic
#3F1562 #5F2095 #7F2BC7 #9D55DA #BA87E5

Accessibility & contrast

On white

6.83
#7F2BC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#7F2BC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F2BC7
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2BC7#FFFFFF#000000##FFFFFF
##7F2BC71.006.833.076.83
#FFFFFF6.831.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CB
Deuteranopia (green-blind)
#005AC4
Tritanopia (blue-blind)
#705579
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7f2bc7;
/* rgb */ color: rgb(127, 43, 199);
/* oklch */ color: oklch(49.8% 0.223 303.3);
Tailwind
colors: {
  custom: {
    50: '#ab6ed9',
    500: '#7f2bc7',
    950: '#000000',
  },
}
SCSS
$custom: #7f2bc7;
$custom-light: #ab6ed9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2bc7",
  "rgb": {
    "r": 127,
    "g": 43,
    "b": 199
  },
  "hsl": {
    "h": 272.308,
    "s": 64.463,
    "l": 47.451
  },
  "oklch": {
    "l": 0.49802,
    "c": 0.22298,
    "h": 303.3
  },
  "luminance": 0.10363
}

Semantic roles & 50–950 ramp

primary
#7F2BC7
secondary
#A4CF7F
accent
#E7408D
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7F2BC7

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

Preview Lab → · Contrast checker → · Palette generator →

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