#7A42BA#7A42BA

#7A42BA is a mid, vivid violet. Relative luminance 0.116; OKLCH L 50.8% C 0.182 H 301.7°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#7A42BA
RGBrgb(122, 66, 186)
HSLhsl(268, 48%, 49%)
HSVhsv(268, 65%, 73%)
CMYKcmyk(34.4%, 64.5%, 0%, 27.1%)
CIE-LABlab(40.54, 47.80, -54.40)
CIE-LCHlch(40.54, 72.42, 311.30°)
OKLaboklab(50.82% 0.0954 -0.1546)
OKLCHoklch(50.82% 0.182 301.7)
XYZxyz(18.8351, 11.5791, 47.6875)
Luminance0.1158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A42BA #82BA42
analogous
#4246BA #7A42BA #B642BA
triadic
#7A42BA #BA7A42 #42BA7A
tetradic
#7A42BA #BA4246 #82BA42 #42BAB6
square
#7A42BA #BA4246 #82BA42 #42BAB6
split-complementary
#7A42BA #BAB642 #46BA42
monochromatic
#3F2260 #5C328D #7A42BA #996ECB #B99BDB

Accessibility & contrast

On white

6.33
#7A42BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7A42BA
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A42BA#FFFFFF#000000##FFFFFF
##7A42BA1.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBE
Deuteranopia (green-blind)
#135FB7
Tritanopia (blue-blind)
#6D5C78
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7a42ba;
/* rgb */ color: rgb(122, 66, 186);
/* oklch */ color: oklch(50.8% 0.182 301.7);
Tailwind
colors: {
  custom: {
    50: '#a57acf',
    500: '#7a42ba',
    950: '#000000',
  },
}
SCSS
$custom: #7a42ba;
$custom-light: #a57acf;
$custom-dark: #000000;
JSON
{
  "hex": "#7a42ba",
  "rgb": {
    "r": 122,
    "g": 66,
    "b": 186
  },
  "hsl": {
    "h": 268,
    "s": 47.619,
    "l": 49.412
  },
  "oklch": {
    "l": 0.50816,
    "c": 0.18164,
    "h": 301.7
  },
  "luminance": 0.11579
}

Semantic roles & 50–950 ramp

primary
#7A42BA
secondary
#AEC890
accent
#D75198
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7A42BA

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

Preview Lab → · Contrast checker → · Palette generator →

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