#7B42C4#7B42C4

#7B42C4 is a mid, vivid violet. Relative luminance 0.121; OKLCH L 51.7% C 0.193 H 299.7°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#7B42C4
RGBrgb(123, 66, 196)
HSLhsl(266, 52%, 51%)
HSVhsv(266, 66%, 77%)
CMYKcmyk(37.2%, 66.3%, 0%, 23.1%)
CIE-LABlab(41.36, 50.53, -58.91)
CIE-LCHlch(41.36, 77.61, 310.62°)
OKLaboklab(51.66% 0.0958 -0.1678)
OKLCHoklch(51.66% 0.193 299.7)
XYZxyz(20.0779, 12.0927, 53.4902)
Luminance0.1209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B42C4 #8BC442
analogous
#424AC4 #7B42C4 #BC42C4
triadic
#7B42C4 #C47B42 #42C47B
tetradic
#7B42C4 #C4424A #8BC442 #42C4BC
square
#7B42C4 #C4424A #8BC442 #42C4BC
split-complementary
#7B42C4 #C4BC42 #4AC442
monochromatic
#41216A #5E3099 #7B42C4 #9C71D3 #BC9FE1

Accessibility & contrast

On white

6.14
#7B42C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#7B42C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B42C4
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B42C4#FFFFFF#000000##FFFFFF
##7B42C41.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C8
Deuteranopia (green-blind)
#0061C1
Tritanopia (blue-blind)
#6B607D
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7b42c4;
/* rgb */ color: rgb(123, 66, 196);
/* oklch */ color: oklch(51.7% 0.193 299.7);
Tailwind
colors: {
  custom: {
    50: '#a77ad7',
    500: '#7b42c4',
    950: '#000000',
  },
}
SCSS
$custom: #7b42c4;
$custom-light: #a77ad7;
$custom-dark: #000000;
JSON
{
  "hex": "#7b42c4",
  "rgb": {
    "r": 123,
    "g": 66,
    "b": 196
  },
  "hsl": {
    "h": 266.308,
    "s": 52.419,
    "l": 51.373
  },
  "oklch": {
    "l": 0.51659,
    "c": 0.19319,
    "h": 299.7
  },
  "luminance": 0.12093
}

Semantic roles & 50–950 ramp

primary
#7B42C4
secondary
#B4CE94
accent
#DC4C9D
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7B42C4

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

Preview Lab → · Contrast checker → · Palette generator →

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