#7F2EAC#7F2EAC

#7F2EAC is a mid, vivid violet. Relative luminance 0.094; OKLCH L 48.0% C 0.194 H 310.4°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#7F2EAC
RGBrgb(127, 46, 172)
HSLhsl(279, 58%, 43%)
HSVhsv(279, 73%, 67%)
CMYKcmyk(26.2%, 73.3%, 0%, 32.5%)
CIE-LABlab(36.83, 54.97, -52.09)
CIE-LCHlch(36.83, 75.73, 316.54°)
OKLaboklab(47.99% 0.1256 -0.1475)
OKLCHoklch(47.99% 0.194 310.4)
XYZxyz(17.1743, 9.4450, 39.9401)
Luminance0.0945 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2EAC #5BAC2E
analogous
#402EAC #7F2EAC #AC2E9A
triadic
#7F2EAC #AC7F2E #2EAC7F
tetradic
#7F2EAC #AC402E #5BAC2E #2E9AAC
square
#7F2EAC #AC402E #5BAC2E #2E9AAC
split-complementary
#7F2EAC #9AAC2E #2EAC40
monochromatic
#38144B #5B217C #7F2EAC #9F49CE #B879DB

Accessibility & contrast

On white

7.27
#7F2EAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#7F2EAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2EAC
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2EAC#FFFFFF#000000##FFFFFF
##7F2EAC1.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B0
Deuteranopia (green-blind)
#1558A9
Tritanopia (blue-blind)
#794B6A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7f2eac;
/* rgb */ color: rgb(127, 46, 172);
/* oklch */ color: oklch(48.0% 0.194 310.4);
Tailwind
colors: {
  custom: {
    50: '#a86fc5',
    500: '#7f2eac',
    950: '#000000',
  },
}
SCSS
$custom: #7f2eac;
$custom-light: #a86fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2eac",
  "rgb": {
    "r": 127,
    "g": 46,
    "b": 172
  },
  "hsl": {
    "h": 278.571,
    "s": 57.798,
    "l": 42.745
  },
  "oklch": {
    "l": 0.47987,
    "c": 0.19368,
    "h": 310.4
  },
  "luminance": 0.09445
}

Semantic roles & 50–950 ramp

primary
#7F2EAC
secondary
#8FC372
accent
#E1477E
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F2EAC

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

Preview Lab → · Contrast checker → · Palette generator →

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