#7B42D6#7B42D6

#7B42D6 is a mid, highly saturated violet. Relative luminance 0.130; OKLCH L 53.0% C 0.213 H 295.9°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#7B42D6
RGBrgb(123, 66, 214)
HSLhsl(263, 64%, 55%)
HSVhsv(263, 69%, 84%)
CMYKcmyk(42.5%, 69.2%, 0%, 16.1%)
CIE-LABlab(42.71, 55.12, -67.13)
CIE-LCHlch(42.71, 86.86, 309.39°)
OKLaboklab(53.04% 0.0932 -0.1919)
OKLCHoklch(53.04% 0.213 295.9)
XYZxyz(22.2510, 12.9619, 64.9349)
Luminance0.1296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B42D6 #9DD642
analogous
#4253D6 #7B42D6 #C542D6
triadic
#7B42D6 #D67B42 #42D67B
tetradic
#7B42D6 #D64253 #9DD642 #42D6C5
square
#7B42D6 #D64253 #9DD642 #42D6C5
split-complementary
#7B42D6 #D6C542 #53D642
monochromatic
#431C82 #5D27B4 #7B42D6 #9E74E1 #C1A7EC

Accessibility & contrast

On white

5.85
#7B42D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#7B42D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B42D6
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B42D6#FFFFFF#000000##FFFFFF
##7B42D61.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066DA
Deuteranopia (green-blind)
#0063D3
Tritanopia (blue-blind)
#636787
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7b42d6;
/* rgb */ color: rgb(123, 66, 214);
/* oklch */ color: oklch(53.0% 0.213 295.9);
Tailwind
colors: {
  custom: {
    50: '#a87be4',
    500: '#7b42d6',
    950: '#000000',
  },
}
SCSS
$custom: #7b42d6;
$custom-light: #a87be4;
$custom-dark: #000000;
JSON
{
  "hex": "#7b42d6",
  "rgb": {
    "r": 123,
    "g": 66,
    "b": 214
  },
  "hsl": {
    "h": 263.108,
    "s": 64.348,
    "l": 54.902
  },
  "oklch": {
    "l": 0.53041,
    "c": 0.21336,
    "h": 295.9
  },
  "luminance": 0.12962
}

Semantic roles & 50–950 ramp

primary
#7B42D6
secondary
#C1D99B
accent
#E740A7
background
#FAF7FE
surface
#F5EEFC
border
#CFC9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7B42D6

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

Preview Lab → · Contrast checker → · Palette generator →

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