#7A42BB#7A42BB

#7A42BB is a mid, vivid violet. Relative luminance 0.116; OKLCH L 50.9% C 0.183 H 301.4°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#7A42BB
RGBrgb(122, 66, 187)
HSLhsl(268, 48%, 50%)
HSVhsv(268, 65%, 73%)
CMYKcmyk(34.8%, 64.7%, 0%, 26.7%)
CIE-LABlab(40.61, 48.05, -54.88)
CIE-LCHlch(40.61, 72.94, 311.21°)
OKLaboklab(50.89% 0.0953 -0.1559)
OKLCHoklch(50.89% 0.183 301.4)
XYZxyz(18.9418, 11.6218, 48.2494)
Luminance0.1162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A42BB #83BB42
analogous
#4246BB #7A42BB #B742BB
triadic
#7A42BB #BB7A42 #42BB7A
tetradic
#7A42BB #BB4246 #83BB42 #42BBB7
square
#7A42BB #BB4246 #83BB42 #42BBB7
split-complementary
#7A42BB #BBB742 #46BB42
monochromatic
#3F2261 #5C328E #7A42BB #9A6ECC #B99CDC

Accessibility & contrast

On white

6.32
#7A42BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#7A42BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A42BB
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A42BB#FFFFFF#000000##FFFFFF
##7A42BB1.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBF
Deuteranopia (green-blind)
#105FB8
Tritanopia (blue-blind)
#6C5D79
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7a42bb;
/* rgb */ color: rgb(122, 66, 187);
/* oklch */ color: oklch(50.9% 0.183 301.4);
Tailwind
colors: {
  custom: {
    50: '#a57ad0',
    500: '#7a42bb',
    950: '#000000',
  },
}
SCSS
$custom: #7a42bb;
$custom-light: #a57ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a42bb",
  "rgb": {
    "r": 122,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 267.769,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.50888,
    "c": 0.18278,
    "h": 301.4
  },
  "luminance": 0.11622
}

Semantic roles & 50–950 ramp

primary
#7A42BB
secondary
#AEC891
accent
#D75099
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7A42BB

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

Preview Lab → · Contrast checker → · Palette generator →

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