#7A42BC#7A42BC

#7A42BC is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.0% C 0.184 H 301.2°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#7A42BC
RGBrgb(122, 66, 188)
HSLhsl(268, 48%, 50%)
HSVhsv(268, 65%, 74%)
CMYKcmyk(35.1%, 64.9%, 0%, 26.3%)
CIE-LABlab(40.68, 48.30, -55.35)
CIE-LCHlch(40.68, 73.46, 311.11°)
OKLaboklab(50.96% 0.0953 -0.1573)
OKLCHoklch(50.96% 0.184 301.2)
XYZxyz(19.0492, 11.6647, 48.8151)
Luminance0.1167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A42BC #84BC42
analogous
#4247BC #7A42BC #B742BC
triadic
#7A42BC #BC7A42 #42BC7A
tetradic
#7A42BC #BC4247 #84BC42 #42BCB7
square
#7A42BC #BC4247 #84BC42 #42BCB7
split-complementary
#7A42BC #BCB742 #47BC42
monochromatic
#3F2261 #5D328F #7A42BC #9A6FCC #BA9CDC

Accessibility & contrast

On white

6.30
#7A42BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#7A42BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A42BC
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A42BC#FFFFFF#000000##FFFFFF
##7A42BC1.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC0
Deuteranopia (green-blind)
#0C5FB9
Tritanopia (blue-blind)
#6C5D79
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7a42bc;
/* rgb */ color: rgb(122, 66, 188);
/* oklch */ color: oklch(51.0% 0.184 301.2);
Tailwind
colors: {
  custom: {
    50: '#a57ad1',
    500: '#7a42bc',
    950: '#000000',
  },
}
SCSS
$custom: #7a42bc;
$custom-light: #a57ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#7a42bc",
  "rgb": {
    "r": 122,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 267.541,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.5096,
    "c": 0.18393,
    "h": 301.2
  },
  "luminance": 0.11665
}

Semantic roles & 50–950 ramp

primary
#7A42BC
secondary
#AFC991
accent
#D85099
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7A42BC

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

Preview Lab → · Contrast checker → · Palette generator →

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