#7A42B5#7A42B5

#7A42B5 is a mid, vivid violet. Relative luminance 0.114; OKLCH L 50.5% C 0.176 H 303.0°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#7A42B5
RGBrgb(122, 66, 181)
HSLhsl(269, 47%, 48%)
HSVhsv(269, 64%, 71%)
CMYKcmyk(32.6%, 63.5%, 0%, 29%)
CIE-LABlab(40.20, 46.56, -52.01)
CIE-LCHlch(40.20, 69.81, 311.83°)
OKLaboklab(50.46% 0.0958 -0.1475)
OKLCHoklch(50.46% 0.176 303)
XYZxyz(18.3128, 11.3702, 44.9370)
Luminance0.1137 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A42B5 #7DB542
analogous
#4243B5 #7A42B5 #B342B5
triadic
#7A42B5 #B57A42 #42B57A
tetradic
#7A42B5 #B54243 #7DB542 #42B5B3
square
#7A42B5 #B54243 #7DB542 #42B5B3
split-complementary
#7A42B5 #B5B342 #43B542
monochromatic
#3E215B #5C3288 #7A42B5 #996BC9 #B898D9

Accessibility & contrast

On white

6.41
#7A42B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#7A42B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A42B5
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A42B5#FFFFFF#000000##FFFFFF
##7A42B51.006.413.276.41
#FFFFFF6.411.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB9
Deuteranopia (green-blind)
#1E5EB2
Tritanopia (blue-blind)
#6F5B75
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7a42b5;
/* rgb */ color: rgb(122, 66, 181);
/* oklch */ color: oklch(50.5% 0.176 303.0);
Tailwind
colors: {
  custom: {
    50: '#a57acc',
    500: '#7a42b5',
    950: '#000000',
  },
}
SCSS
$custom: #7a42b5;
$custom-light: #a57acc;
$custom-dark: #000000;
JSON
{
  "hex": "#7a42b5",
  "rgb": {
    "r": 122,
    "g": 66,
    "b": 181
  },
  "hsl": {
    "h": 269.217,
    "s": 46.559,
    "l": 48.431
  },
  "oklch": {
    "l": 0.5046,
    "c": 0.17591,
    "h": 303
  },
  "luminance": 0.1137
}

Semantic roles & 50–950 ramp

primary
#7A42B5
secondary
#AAC58E
accent
#D65296
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7A42B5

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

Preview Lab → · Contrast checker → · Palette generator →

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