#7A42D1#7A42D1

#7A42D1 is a mid, highly saturated violet. Relative luminance 0.126; OKLCH L 52.5% C 0.208 H 296.5°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#7A42D1
RGBrgb(122, 66, 209)
HSLhsl(263, 61%, 54%)
HSVhsv(263, 68%, 82%)
CMYKcmyk(41.6%, 68.4%, 0%, 18%)
CIE-LABlab(42.21, 53.65, -65.06)
CIE-LCHlch(42.21, 84.33, 309.51°)
OKLaboklab(52.54% 0.0926 -0.1859)
OKLCHoklch(52.54% 0.208 296.5)
XYZxyz(21.4799, 12.6370, 61.6167)
Luminance0.1264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A42D1 #99D142
analogous
#4252D1 #7A42D1 #C242D1
triadic
#7A42D1 #D17A42 #42D17A
tetradic
#7A42D1 #D14252 #99D142 #42D1C2
square
#7A42D1 #D14252 #99D142 #42D1C2
split-complementary
#7A42D1 #D1C242 #52D142
monochromatic
#421E7B #5D2AAC #7A42D1 #9D73DD #BFA4E9

Accessibility & contrast

On white

5.95
#7A42D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#7A42D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A42D1
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A42D1#FFFFFF#000000##FFFFFF
##7A42D11.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D5
Deuteranopia (green-blind)
#0062CE
Tritanopia (blue-blind)
#646584
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7a42d1;
/* rgb */ color: rgb(122, 66, 209);
/* oklch */ color: oklch(52.5% 0.208 296.5);
Tailwind
colors: {
  custom: {
    50: '#a77ae0',
    500: '#7a42d1',
    950: '#000000',
  },
}
SCSS
$custom: #7a42d1;
$custom-light: #a77ae0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a42d1",
  "rgb": {
    "r": 122,
    "g": 66,
    "b": 209
  },
  "hsl": {
    "h": 263.497,
    "s": 60.851,
    "l": 53.922
  },
  "oklch": {
    "l": 0.52543,
    "c": 0.2077,
    "h": 296.5
  },
  "luminance": 0.12637
}

Semantic roles & 50–950 ramp

primary
#7A42D1
secondary
#BED699
accent
#E444A5
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7A42D1

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

Preview Lab → · Contrast checker → · Palette generator →

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