#7F2EC9#7F2EC9

#7F2EC9 is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 50.2% C 0.222 H 302.6°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#7F2EC9
RGBrgb(127, 46, 201)
HSLhsl(271, 63%, 48%)
HSVhsv(271, 77%, 79%)
CMYKcmyk(36.8%, 77.1%, 0%, 21.2%)
CIE-LABlab(39.04, 61.48, -65.57)
CIE-LCHlch(39.04, 89.88, 313.15°)
OKLaboklab(50.24% 0.1196 -0.1871)
OKLCHoklch(50.24% 0.222 302.6)
XYZxyz(20.2695, 10.6830, 56.2412)
Luminance0.1068 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2EC9 #78C92E
analogous
#322EC9 #7F2EC9 #C92EC5
triadic
#7F2EC9 #C97F2E #2EC97F
tetradic
#7F2EC9 #C9322E #78C92E #2EC5C9
square
#7F2EC9 #C9322E #78C92E #2EC5C9
split-complementary
#7F2EC9 #C5C92E #2EC932
monochromatic
#401765 #602397 #7F2EC9 #9D5BD9 #BB8DE5

Accessibility & contrast

On white

6.70
#7F2EC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#7F2EC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F2EC9
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2EC9#FFFFFF#000000##FFFFFF
##7F2EC91.006.703.146.70
#FFFFFF6.701.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCD
Deuteranopia (green-blind)
#005BC6
Tritanopia (blue-blind)
#6F577B
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7f2ec9;
/* rgb */ color: rgb(127, 46, 201);
/* oklch */ color: oklch(50.2% 0.222 302.6);
Tailwind
colors: {
  custom: {
    50: '#ab70da',
    500: '#7f2ec9',
    950: '#000000',
  },
}
SCSS
$custom: #7f2ec9;
$custom-light: #ab70da;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2ec9",
  "rgb": {
    "r": 127,
    "g": 46,
    "b": 201
  },
  "hsl": {
    "h": 271.355,
    "s": 62.753,
    "l": 48.431
  },
  "oklch": {
    "l": 0.5024,
    "c": 0.22205,
    "h": 302.6
  },
  "luminance": 0.10683
}

Semantic roles & 50–950 ramp

primary
#7F2EC9
secondary
#A8CF84
accent
#E64290
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7F2EC9

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

Preview Lab → · Contrast checker → · Palette generator →

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