#7F2EB6#7F2EB6

#7F2EB6 is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.7% C 0.203 H 307.5°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#7F2EB6
RGBrgb(127, 46, 182)
HSLhsl(276, 60%, 45%)
HSVhsv(276, 75%, 71%)
CMYKcmyk(30.2%, 74.7%, 0%, 28.6%)
CIE-LABlab(37.56, 57.17, -56.84)
CIE-LCHlch(37.56, 80.62, 315.17°)
OKLaboklab(48.74% 0.1238 -0.1614)
OKLCHoklch(48.74% 0.203 307.5)
XYZxyz(18.1711, 9.8437, 45.1897)
Luminance0.0984 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2EB6 #65B62E
analogous
#3B2EB6 #7F2EB6 #B62EA9
triadic
#7F2EB6 #B67F2E #2EB67F
tetradic
#7F2EB6 #B63B2E #65B62E #2EA9B6
square
#7F2EB6 #B63B2E #65B62E #2EA9B6
split-complementary
#7F2EB6 #A9B62E #2EB63B
monochromatic
#3B1554 #5D2285 #7F2EB6 #9D4FD2 #B880DF

Accessibility & contrast

On white

7.07
#7F2EB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#7F2EB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2EB6
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2EB6#FFFFFF#000000##FFFFFF
##7F2EB61.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BA
Deuteranopia (green-blind)
#0059B3
Tritanopia (blue-blind)
#764F70
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7f2eb6;
/* rgb */ color: rgb(127, 46, 182);
/* oklch */ color: oklch(48.7% 0.203 307.5);
Tailwind
colors: {
  custom: {
    50: '#a96fcd',
    500: '#7f2eb6',
    950: '#000000',
  },
}
SCSS
$custom: #7f2eb6;
$custom-light: #a96fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2eb6",
  "rgb": {
    "r": 127,
    "g": 46,
    "b": 182
  },
  "hsl": {
    "h": 275.735,
    "s": 59.649,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48737,
    "c": 0.20346,
    "h": 307.5
  },
  "luminance": 0.09843
}

Semantic roles & 50–950 ramp

primary
#7F2EB6
secondary
#98C878
accent
#E34585
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F2EB6

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

Preview Lab → · Contrast checker → · Palette generator →

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