#7B4ED8#7B4ED8

#7B4ED8 is a mid, highly saturated violet. Relative luminance 0.146; OKLCH L 54.8% C 0.201 H 293.7°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#7B4ED8
RGBrgb(123, 78, 216)
HSLhsl(260, 64%, 58%)
HSVhsv(260, 64%, 85%)
CMYKcmyk(43.1%, 63.9%, 0%, 15.3%)
CIE-LABlab(45.11, 49.47, -64.37)
CIE-LCHlch(45.11, 81.19, 307.54°)
OKLaboklab(54.81% 0.0807 -0.1839)
OKLCHoklch(54.81% 0.201 293.7)
XYZxyz(23.2841, 14.6170, 66.5470)
Luminance0.1462 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B4ED8 #ABD84E
analogous
#4E66D8 #7B4ED8 #C04ED8
triadic
#7B4ED8 #D87B4E #4ED87B
tetradic
#7B4ED8 #D84E66 #ABD84E #4ED8C0
square
#7B4ED8 #D84E66 #ABD84E #4ED8C0
split-complementary
#7B4ED8 #D8C04E #66D84E
monochromatic
#431F8D #5B2ABF #7B4ED8 #A080E3 #C6B2EE

Accessibility & contrast

On white

5.35
#7B4ED8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#7B4ED8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B4ED8
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B4ED8#FFFFFF#000000##FFFFFF
##7B4ED81.005.353.925.35
#FFFFFF5.351.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDC
Deuteranopia (green-blind)
#0068D5
Tritanopia (blue-blind)
#616E8C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7b4ed8;
/* rgb */ color: rgb(123, 78, 216);
/* oklch */ color: oklch(54.8% 0.201 293.7);
Tailwind
colors: {
  custom: {
    50: '#a882e5',
    500: '#7b4ed8',
    950: '#000000',
  },
}
SCSS
$custom: #7b4ed8;
$custom-light: #a882e5;
$custom-dark: #000000;
JSON
{
  "hex": "#7b4ed8",
  "rgb": {
    "r": 123,
    "g": 78,
    "b": 216
  },
  "hsl": {
    "h": 259.565,
    "s": 63.889,
    "l": 57.647
  },
  "oklch": {
    "l": 0.54811,
    "c": 0.20082,
    "h": 293.7
  },
  "luminance": 0.14618
}

Semantic roles & 50–950 ramp

primary
#7B4ED8
secondary
#CBDDA5
accent
#E741B1
background
#FAF8FE
surface
#F4EFFC
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7B4ED8

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

Preview Lab → · Contrast checker → · Palette generator →

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