#7A42B2#7A42B2

#7A42B2 is a mid, vivid violet. Relative luminance 0.112; OKLCH L 50.2% C 0.172 H 303.8°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#7A42B2
RGBrgb(122, 66, 178)
HSLhsl(270, 46%, 48%)
HSVhsv(270, 63%, 70%)
CMYKcmyk(31.5%, 62.9%, 0%, 30.2%)
CIE-LABlab(40.00, 45.82, -50.57)
CIE-LCHlch(40.00, 68.24, 312.18°)
OKLaboklab(50.25% 0.096 -0.1433)
OKLCHoklch(50.25% 0.172 303.8)
XYZxyz(18.0083, 11.2484, 43.3333)
Luminance0.1125 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A42B2 #7AB242
analogous
#4242B2 #7A42B2 #B242B2
triadic
#7A42B2 #B27A42 #42B27A
tetradic
#7A42B2 #B24242 #7AB242 #42B2B2
square
#7A42B2 #B24242 #7AB242 #42B2B2
split-complementary
#7A42B2 #B2B242 #42B242
monochromatic
#3D2159 #5B3185 #7A42B2 #996AC8 #B796D8

Accessibility & contrast

On white

6.46
#7A42B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#7A42B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A42B2
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A42B2#FFFFFF#000000##FFFFFF
##7A42B21.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB6
Deuteranopia (green-blind)
#235EAF
Tritanopia (blue-blind)
#705A74
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7a42b2;
/* rgb */ color: rgb(122, 66, 178);
/* oklch */ color: oklch(50.2% 0.172 303.8);
Tailwind
colors: {
  custom: {
    50: '#a479ca',
    500: '#7a42b2',
    950: '#000000',
  },
}
SCSS
$custom: #7a42b2;
$custom-light: #a479ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7a42b2",
  "rgb": {
    "r": 122,
    "g": 66,
    "b": 178
  },
  "hsl": {
    "h": 270,
    "s": 45.902,
    "l": 47.843
  },
  "oklch": {
    "l": 0.50249,
    "c": 0.17247,
    "h": 303.8
  },
  "luminance": 0.11248
}

Semantic roles & 50–950 ramp

primary
#7A42B2
secondary
#A8C48C
accent
#D65294
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7A42B2

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

Preview Lab → · Contrast checker → · Palette generator →

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