#7B2ED7#7B2ED7

#7B2ED7 is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.9% C 0.235 H 297.9°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#7B2ED7
RGBrgb(123, 46, 215)
HSLhsl(267, 68%, 51%)
HSVhsv(267, 79%, 84%)
CMYKcmyk(42.8%, 78.6%, 0%, 15.7%)
CIE-LABlab(39.70, 64.13, -72.61)
CIE-LCHlch(39.70, 96.88, 311.45°)
OKLaboklab(50.95% 0.11 -0.2079)
OKLCHoklch(50.95% 0.235 297.9)
XYZxyz(21.4079, 11.0709, 65.2858)
Luminance0.1107 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2ED7 #8AD72E
analogous
#2E35D7 #7B2ED7 #CF2ED7
triadic
#7B2ED7 #D77B2E #2ED77B
tetradic
#7B2ED7 #D72E35 #8AD72E #2ED7CF
square
#7B2ED7 #D72E35 #8AD72E #2ED7CF
split-complementary
#7B2ED7 #D7CF2E #35D72E
monochromatic
#411674 #5E20A8 #7B2ED7 #9B61E1 #BC95EB

Accessibility & contrast

On white

6.53
#7B2ED7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#7B2ED7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B2ED7
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2ED7#FFFFFF#000000##FFFFFF
##7B2ED71.006.533.216.53
#FFFFFF6.531.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EDC
Deuteranopia (green-blind)
#005CD4
Tritanopia (blue-blind)
#635D83
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7b2ed7;
/* rgb */ color: rgb(123, 46, 215);
/* oklch */ color: oklch(50.9% 0.235 297.9);
Tailwind
colors: {
  custom: {
    50: '#aa70e5',
    500: '#7b2ed7',
    950: '#000000',
  },
}
SCSS
$custom: #7b2ed7;
$custom-light: #aa70e5;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2ed7",
  "rgb": {
    "r": 123,
    "g": 46,
    "b": 215
  },
  "hsl": {
    "h": 267.337,
    "s": 67.871,
    "l": 51.176
  },
  "oklch": {
    "l": 0.50948,
    "c": 0.23522,
    "h": 297.9
  },
  "luminance": 0.11071
}

Semantic roles & 50–950 ramp

primary
#7B2ED7
secondary
#B4D68B
accent
#EB3D9C
background
#FBF7FE
surface
#F6EDFC
border
#D0C8D5
text
#110816
muted
#807B84

Preview Lab

Preview with #7B2ED7

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

Preview Lab → · Contrast checker → · Palette generator →

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