#7F2DAC#7F2DAC

#7F2DAC is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.9% C 0.195 H 310.5°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#7F2DAC
RGBrgb(127, 45, 172)
HSLhsl(279, 59%, 43%)
HSVhsv(279, 74%, 67%)
CMYKcmyk(26.2%, 73.8%, 0%, 32.5%)
CIE-LABlab(36.68, 55.38, -52.32)
CIE-LCHlch(36.68, 76.19, 316.63°)
OKLaboklab(47.89% 0.1265 -0.1482)
OKLCHoklch(47.89% 0.195 310.5)
XYZxyz(17.1357, 9.3677, 39.9272)
Luminance0.0937 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2DAC #5AAC2D
analogous
#3F2DAC #7F2DAC #AC2D99
triadic
#7F2DAC #AC7F2D #2DAC7F
tetradic
#7F2DAC #AC3F2D #5AAC2D #2D99AC
square
#7F2DAC #AC3F2D #5AAC2D #2D99AC
split-complementary
#7F2DAC #99AC2D #2DAC3F
monochromatic
#37144B #5B207B #7F2DAC #9F47CF #B878DC

Accessibility & contrast

On white

7.31
#7F2DAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#7F2DAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2DAC
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2DAC#FFFFFF#000000##FFFFFF
##7F2DAC1.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B0
Deuteranopia (green-blind)
#1358A9
Tritanopia (blue-blind)
#794A6A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7f2dac;
/* rgb */ color: rgb(127, 45, 172);
/* oklch */ color: oklch(47.9% 0.195 310.5);
Tailwind
colors: {
  custom: {
    50: '#a96ec5',
    500: '#7f2dac',
    950: '#000000',
  },
}
SCSS
$custom: #7f2dac;
$custom-light: #a96ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2dac",
  "rgb": {
    "r": 127,
    "g": 45,
    "b": 172
  },
  "hsl": {
    "h": 278.74,
    "s": 58.525,
    "l": 42.549
  },
  "oklch": {
    "l": 0.47885,
    "c": 0.19484,
    "h": 310.5
  },
  "luminance": 0.09367
}

Semantic roles & 50–950 ramp

primary
#7F2DAC
secondary
#8EC471
accent
#E2467D
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F2DAC

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

Preview Lab → · Contrast checker → · Palette generator →

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