#7F2FAC#7F2FAC

#7F2FAC is a mid, vivid violet. Relative luminance 0.095; OKLCH L 48.1% C 0.193 H 310.3°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#7F2FAC
RGBrgb(127, 47, 172)
HSLhsl(278, 57%, 43%)
HSVhsv(278, 73%, 67%)
CMYKcmyk(26.2%, 72.7%, 0%, 32.5%)
CIE-LABlab(36.97, 54.55, -51.85)
CIE-LCHlch(36.97, 75.26, 316.46°)
OKLaboklab(48.09% 0.1246 -0.1468)
OKLCHoklch(48.09% 0.193 310.3)
XYZxyz(17.2139, 9.5240, 39.9532)
Luminance0.0952 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2FAC #5CAC2F
analogous
#402FAC #7F2FAC #AC2F9A
triadic
#7F2FAC #AC7F2F #2FAC7F
tetradic
#7F2FAC #AC402F #5CAC2F #2F9AAC
square
#7F2FAC #AC402F #5CAC2F #2F9AAC
split-complementary
#7F2FAC #9AAC2F #2FAC40
monochromatic
#38154C #5C227C #7F2FAC #9E4BCE #B87BDB

Accessibility & contrast

On white

7.23
#7F2FAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#7F2FAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2FAC
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2FAC#FFFFFF#000000##FFFFFF
##7F2FAC1.007.232.907.23
#FFFFFF7.231.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B0
Deuteranopia (green-blind)
#1758A9
Tritanopia (blue-blind)
#794B6B
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7f2fac;
/* rgb */ color: rgb(127, 47, 172);
/* oklch */ color: oklch(48.1% 0.193 310.3);
Tailwind
colors: {
  custom: {
    50: '#a86fc5',
    500: '#7f2fac',
    950: '#000000',
  },
}
SCSS
$custom: #7f2fac;
$custom-light: #a86fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2fac",
  "rgb": {
    "r": 127,
    "g": 47,
    "b": 172
  },
  "hsl": {
    "h": 278.4,
    "s": 57.078,
    "l": 42.941
  },
  "oklch": {
    "l": 0.48092,
    "c": 0.19251,
    "h": 310.3
  },
  "luminance": 0.09524
}

Semantic roles & 50–950 ramp

primary
#7F2FAC
secondary
#90C374
accent
#E0477E
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F2FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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