#7F2EB4#7F2EB4

#7F2EB4 is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.6% C 0.202 H 308.0°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#7F2EB4
RGBrgb(127, 46, 180)
HSLhsl(276, 59%, 44%)
HSVhsv(276, 74%, 71%)
CMYKcmyk(29.4%, 74.4%, 0%, 29.4%)
CIE-LABlab(37.41, 56.73, -55.90)
CIE-LCHlch(37.41, 79.64, 315.42°)
OKLaboklab(48.59% 0.1242 -0.1587)
OKLCHoklch(48.59% 0.202 308)
XYZxyz(17.9659, 9.7616, 44.1089)
Luminance0.0976 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2EB4 #63B42E
analogous
#3C2EB4 #7F2EB4 #B42EA6
triadic
#7F2EB4 #B47F2E #2EB47F
tetradic
#7F2EB4 #B43C2E #63B42E #2EA6B4
square
#7F2EB4 #B43C2E #63B42E #2EA6B4
split-complementary
#7F2EB4 #A6B42E #2EB43C
monochromatic
#3A1553 #5D2283 #7F2EB4 #9D4ED2 #B87EDE

Accessibility & contrast

On white

7.11
#7F2EB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#7F2EB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2EB4
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2EB4#FFFFFF#000000##FFFFFF
##7F2EB41.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B8
Deuteranopia (green-blind)
#0059B1
Tritanopia (blue-blind)
#764E6F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7f2eb4;
/* rgb */ color: rgb(127, 46, 180);
/* oklch */ color: oklch(48.6% 0.202 308.0);
Tailwind
colors: {
  custom: {
    50: '#a96fcb',
    500: '#7f2eb4',
    950: '#000000',
  },
}
SCSS
$custom: #7f2eb4;
$custom-light: #a96fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2eb4",
  "rgb": {
    "r": 127,
    "g": 46,
    "b": 180
  },
  "hsl": {
    "h": 276.269,
    "s": 59.292,
    "l": 44.314
  },
  "oklch": {
    "l": 0.48585,
    "c": 0.2015,
    "h": 308
  },
  "luminance": 0.09761
}

Semantic roles & 50–950 ramp

primary
#7F2EB4
secondary
#97C777
accent
#E24583
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F2EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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