#7A42D2#7A42D2

#7A42D2 is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 52.6% C 0.209 H 296.3°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#7A42D2
RGBrgb(122, 66, 210)
HSLhsl(263, 62%, 54%)
HSVhsv(263, 69%, 82%)
CMYKcmyk(41.9%, 68.6%, 0%, 17.6%)
CIE-LABlab(42.29, 53.90, -65.52)
CIE-LCHlch(42.29, 84.84, 309.45°)
OKLaboklab(52.62% 0.0925 -0.1872)
OKLCHoklch(52.62% 0.209 296.3)
XYZxyz(21.6041, 12.6867, 62.2708)
Luminance0.1269 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A42D2 #9AD242
analogous
#4252D2 #7A42D2 #C242D2
triadic
#7A42D2 #D27A42 #42D27A
tetradic
#7A42D2 #D24252 #9AD242 #42D2C2
square
#7A42D2 #D24252 #9AD242 #42D2C2
split-complementary
#7A42D2 #D2C242 #52D242
monochromatic
#421E7C #5D29AD #7A42D2 #9D73DE #C0A5EA

Accessibility & contrast

On white

5.94
#7A42D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#7A42D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A42D2
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A42D2#FFFFFF#000000##FFFFFF
##7A42D21.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D6
Deuteranopia (green-blind)
#0062CF
Tritanopia (blue-blind)
#636585
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7a42d2;
/* rgb */ color: rgb(122, 66, 210);
/* oklch */ color: oklch(52.6% 0.209 296.3);
Tailwind
colors: {
  custom: {
    50: '#a77ae1',
    500: '#7a42d2',
    950: '#000000',
  },
}
SCSS
$custom: #7a42d2;
$custom-light: #a77ae1;
$custom-dark: #000000;
JSON
{
  "hex": "#7a42d2",
  "rgb": {
    "r": 122,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 263.333,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.52621,
    "c": 0.20881,
    "h": 296.3
  },
  "luminance": 0.12687
}

Semantic roles & 50–950 ramp

primary
#7A42D2
secondary
#BFD799
accent
#E543A6
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7A42D2

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

Preview Lab → · Contrast checker → · Palette generator →

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