#7F2BAC#7F2BAC

#7F2BAC is a mid, vivid violet. Relative luminance 0.092; OKLCH L 47.7% C 0.197 H 310.7°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#7F2BAC
RGBrgb(127, 43, 172)
HSLhsl(279, 60%, 42%)
HSVhsv(279, 75%, 67%)
CMYKcmyk(26.2%, 75%, 0%, 32.5%)
CIE-LABlab(36.40, 56.18, -52.77)
CIE-LCHlch(36.40, 77.08, 316.79°)
OKLaboklab(47.69% 0.1285 -0.1495)
OKLCHoklch(47.69% 0.197 310.7)
XYZxyz(17.0612, 9.2187, 39.9024)
Luminance0.0922 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2BAC #58AC2B
analogous
#3F2BAC #7F2BAC #AC2B98
triadic
#7F2BAC #AC7F2B #2BAC7F
tetradic
#7F2BAC #AC3F2B #58AC2B #2B98AC
square
#7F2BAC #AC3F2B #58AC2B #2B98AC
split-complementary
#7F2BAC #98AC2B #2BAC3F
monochromatic
#37134A #5B1F7B #7F2BAC #9F44D0 #B875DC

Accessibility & contrast

On white

7.39
#7F2BAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#7F2BAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2BAC
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2BAC#FFFFFF#000000##FFFFFF
##7F2BAC1.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B0
Deuteranopia (green-blind)
#0F57A9
Tritanopia (blue-blind)
#79496A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7f2bac;
/* rgb */ color: rgb(127, 43, 172);
/* oklch */ color: oklch(47.7% 0.197 310.7);
Tailwind
colors: {
  custom: {
    50: '#a96dc5',
    500: '#7f2bac',
    950: '#000000',
  },
}
SCSS
$custom: #7f2bac;
$custom-light: #a96dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2bac",
  "rgb": {
    "r": 127,
    "g": 43,
    "b": 172
  },
  "hsl": {
    "h": 279.07,
    "s": 60,
    "l": 42.157
  },
  "oklch": {
    "l": 0.47686,
    "c": 0.19709,
    "h": 310.7
  },
  "luminance": 0.09218
}

Semantic roles & 50–950 ramp

primary
#7F2BAC
secondary
#8CC46F
accent
#E3457C
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F2BAC

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

Preview Lab → · Contrast checker → · Palette generator →

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