#7A42D3#7A42D3

#7A42D3 is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 52.7% C 0.210 H 296.1°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#7A42D3
RGBrgb(122, 66, 211)
HSLhsl(263, 62%, 54%)
HSVhsv(263, 69%, 83%)
CMYKcmyk(42.2%, 68.7%, 0%, 17.3%)
CIE-LABlab(42.36, 54.16, -65.97)
CIE-LCHlch(42.36, 85.35, 309.39°)
OKLaboklab(52.7% 0.0923 -0.1886)
OKLCHoklch(52.7% 0.21 296.1)
XYZxyz(21.7290, 12.7367, 62.9290)
Luminance0.1274 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A42D3 #9BD342
analogous
#4253D3 #7A42D3 #C242D3
triadic
#7A42D3 #D37A42 #42D37A
tetradic
#7A42D3 #D34253 #9BD342 #42D3C2
square
#7A42D3 #D34253 #9BD342 #42D3C2
split-complementary
#7A42D3 #D3C242 #53D342
monochromatic
#421D7D #5D29AF #7A42D3 #9D74DF #C0A5EA

Accessibility & contrast

On white

5.92
#7A42D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#7A42D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A42D3
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A42D3#FFFFFF#000000##FFFFFF
##7A42D31.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D7
Deuteranopia (green-blind)
#0062D0
Tritanopia (blue-blind)
#636686
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7a42d3;
/* rgb */ color: rgb(122, 66, 211);
/* oklch */ color: oklch(52.7% 0.210 296.1);
Tailwind
colors: {
  custom: {
    50: '#a77ae1',
    500: '#7a42d3',
    950: '#000000',
  },
}
SCSS
$custom: #7a42d3;
$custom-light: #a77ae1;
$custom-dark: #000000;
JSON
{
  "hex": "#7a42d3",
  "rgb": {
    "r": 122,
    "g": 66,
    "b": 211
  },
  "hsl": {
    "h": 263.172,
    "s": 62.232,
    "l": 54.314
  },
  "oklch": {
    "l": 0.527,
    "c": 0.20993,
    "h": 296.1
  },
  "luminance": 0.12737
}

Semantic roles & 50–950 ramp

primary
#7A42D3
secondary
#BFD79A
accent
#E542A6
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7A42D3

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

Preview Lab → · Contrast checker → · Palette generator →

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