#7B2EC8#7B2EC8

#7B2EC8 is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.7% C 0.220 H 301.2°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#7B2EC8
RGBrgb(123, 46, 200)
HSLhsl(270, 63%, 48%)
HSVhsv(270, 77%, 78%)
CMYKcmyk(38.5%, 77%, 0%, 21.6%)
CIE-LABlab(38.44, 60.60, -66.00)
CIE-LCHlch(38.44, 89.60, 312.56°)
OKLaboklab(49.68% 0.1141 -0.1885)
OKLCHoklch(49.68% 0.22 301.2)
XYZxyz(19.5681, 10.3349, 55.5963)
Luminance0.1033 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2EC8 #7BC82E
analogous
#2E2EC8 #7B2EC8 #C82EC8
triadic
#7B2EC8 #C87B2E #2EC87B
tetradic
#7B2EC8 #C82E2E #7BC82E #2EC8C8
square
#7B2EC8 #C82E2E #7BC82E #2EC8C8
split-complementary
#7B2EC8 #C8C82E #2EC82E
monochromatic
#3E1764 #5C2396 #7B2EC8 #9A5AD9 #B88CE5

Accessibility & contrast

On white

6.85
#7B2EC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#7B2EC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B2EC8
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2EC8#FFFFFF#000000##FFFFFF
##7B2EC81.006.853.076.85
#FFFFFF6.851.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACC
Deuteranopia (green-blind)
#005AC5
Tritanopia (blue-blind)
#6A577A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7b2ec8;
/* rgb */ color: rgb(123, 46, 200);
/* oklch */ color: oklch(49.7% 0.220 301.2);
Tailwind
colors: {
  custom: {
    50: '#a86fda',
    500: '#7b2ec8',
    950: '#000000',
  },
}
SCSS
$custom: #7b2ec8;
$custom-light: #a86fda;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2ec8",
  "rgb": {
    "r": 123,
    "g": 46,
    "b": 200
  },
  "hsl": {
    "h": 270,
    "s": 62.602,
    "l": 48.235
  },
  "oklch": {
    "l": 0.49679,
    "c": 0.22036,
    "h": 301.2
  },
  "luminance": 0.10335
}

Semantic roles & 50–950 ramp

primary
#7B2EC8
secondary
#A9CF83
accent
#E64294
background
#FAF7FD
surface
#F5EDFB
border
#CFC8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7B2EC8

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

Preview Lab → · Contrast checker → · Palette generator →

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