#7B2EC7#7B2EC7

#7B2EC7 is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.6% C 0.219 H 301.4°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#7B2EC7
RGBrgb(123, 46, 199)
HSLhsl(270, 62%, 48%)
HSVhsv(270, 77%, 78%)
CMYKcmyk(38.2%, 76.9%, 0%, 22%)
CIE-LABlab(38.36, 60.36, -65.55)
CIE-LCHlch(38.36, 89.11, 312.64°)
OKLaboklab(49.6% 0.1144 -0.1872)
OKLCHoklch(49.6% 0.219 301.4)
XYZxyz(19.4517, 10.2884, 54.9828)
Luminance0.1029 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2EC7 #7AC72E
analogous
#2E2EC7 #7B2EC7 #C72EC6
triadic
#7B2EC7 #C77B2E #2EC77B
tetradic
#7B2EC7 #C72E2E #7AC72E #2EC6C7
square
#7B2EC7 #C72E2E #7AC72E #2EC6C7
split-complementary
#7B2EC7 #C6C72E #2EC72E
monochromatic
#3E1764 #5C2395 #7B2EC7 #9A59D9 #B88BE4

Accessibility & contrast

On white

6.87
#7B2EC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#7B2EC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B2EC7
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2EC7#FFFFFF#000000##FFFFFF
##7B2EC71.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CB
Deuteranopia (green-blind)
#0059C4
Tritanopia (blue-blind)
#6A577A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7b2ec7;
/* rgb */ color: rgb(123, 46, 199);
/* oklch */ color: oklch(49.6% 0.219 301.4);
Tailwind
colors: {
  custom: {
    50: '#a86fd9',
    500: '#7b2ec7',
    950: '#000000',
  },
}
SCSS
$custom: #7b2ec7;
$custom-light: #a86fd9;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2ec7",
  "rgb": {
    "r": 123,
    "g": 46,
    "b": 199
  },
  "hsl": {
    "h": 270.196,
    "s": 62.449,
    "l": 48.039
  },
  "oklch": {
    "l": 0.49596,
    "c": 0.21937,
    "h": 301.4
  },
  "luminance": 0.10288
}

Semantic roles & 50–950 ramp

primary
#7B2EC7
secondary
#A8CE83
accent
#E64293
background
#FAF7FD
surface
#F5EDFB
border
#CFC8D4
text
#100815
muted
#7F7B83

Preview Lab

Preview with #7B2EC7

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

Preview Lab → · Contrast checker → · Palette generator →

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