#7B42D8#7B42D8

#7B42D8 is a mid, highly saturated violet. Relative luminance 0.131; OKLCH L 53.2% C 0.216 H 295.5°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#7B42D8
RGBrgb(123, 66, 216)
HSLhsl(263, 66%, 55%)
HSVhsv(263, 69%, 85%)
CMYKcmyk(43.1%, 69.4%, 0%, 15.3%)
CIE-LABlab(42.86, 55.63, -68.02)
CIE-LCHlch(42.86, 87.88, 309.28°)
OKLaboklab(53.2% 0.0928 -0.1946)
OKLCHoklch(53.2% 0.216 295.5)
XYZxyz(22.5080, 13.0647, 66.2883)
Luminance0.1306 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B42D8 #9FD842
analogous
#4254D8 #7B42D8 #C642D8
triadic
#7B42D8 #D87B42 #42D87B
tetradic
#7B42D8 #D84254 #9FD842 #42D8C6
square
#7B42D8 #D84254 #9FD842 #42D8C6
split-complementary
#7B42D8 #D8C642 #54D842
monochromatic
#431B84 #5D26B7 #7B42D8 #9E75E2 #C2A7ED

Accessibility & contrast

On white

5.81
#7B42D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#7B42D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B42D8
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B42D8#FFFFFF#000000##FFFFFF
##7B42D81.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066DC
Deuteranopia (green-blind)
#0063D5
Tritanopia (blue-blind)
#626788
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7b42d8;
/* rgb */ color: rgb(123, 66, 216);
/* oklch */ color: oklch(53.2% 0.216 295.5);
Tailwind
colors: {
  custom: {
    50: '#a87be5',
    500: '#7b42d8',
    950: '#000000',
  },
}
SCSS
$custom: #7b42d8;
$custom-light: #a87be5;
$custom-dark: #000000;
JSON
{
  "hex": "#7b42d8",
  "rgb": {
    "r": 123,
    "g": 66,
    "b": 216
  },
  "hsl": {
    "h": 262.8,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.532,
    "c": 0.21558,
    "h": 295.5
  },
  "luminance": 0.13065
}

Semantic roles & 50–950 ramp

primary
#7B42D8
secondary
#C2DA9C
accent
#E93FA8
background
#FAF7FE
surface
#F5EEFC
border
#CFC9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7B42D8

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

Preview Lab → · Contrast checker → · Palette generator →

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