#7A42B7#7A42B7

#7A42B7 is a mid, vivid violet. Relative luminance 0.115; OKLCH L 50.6% C 0.178 H 302.5°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#7A42B7
RGBrgb(122, 66, 183)
HSLhsl(269, 47%, 49%)
HSVhsv(269, 64%, 72%)
CMYKcmyk(33.3%, 63.9%, 0%, 28.2%)
CIE-LABlab(40.33, 47.05, -52.97)
CIE-LCHlch(40.33, 70.85, 311.61°)
OKLaboklab(50.6% 0.0957 -0.1504)
OKLCHoklch(50.6% 0.178 302.5)
XYZxyz(18.5195, 11.4529, 46.0255)
Luminance0.1145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A42B7 #7FB742
analogous
#4245B7 #7A42B7 #B542B7
triadic
#7A42B7 #B77A42 #42B77A
tetradic
#7A42B7 #B74245 #7FB742 #42B7B5
square
#7A42B7 #B74245 #7FB742 #42B7B5
split-complementary
#7A42B7 #B7B542 #45B742
monochromatic
#3E225D #5C328A #7A42B7 #996CCA #B899DA

Accessibility & contrast

On white

6.38
#7A42B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#7A42B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A42B7
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A42B7#FFFFFF#000000##FFFFFF
##7A42B71.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBB
Deuteranopia (green-blind)
#1A5FB4
Tritanopia (blue-blind)
#6E5B76
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7a42b7;
/* rgb */ color: rgb(122, 66, 183);
/* oklch */ color: oklch(50.6% 0.178 302.5);
Tailwind
colors: {
  custom: {
    50: '#a57acd',
    500: '#7a42b7',
    950: '#000000',
  },
}
SCSS
$custom: #7a42b7;
$custom-light: #a57acd;
$custom-dark: #000000;
JSON
{
  "hex": "#7a42b7",
  "rgb": {
    "r": 122,
    "g": 66,
    "b": 183
  },
  "hsl": {
    "h": 268.718,
    "s": 46.988,
    "l": 48.824
  },
  "oklch": {
    "l": 0.50601,
    "c": 0.17821,
    "h": 302.5
  },
  "luminance": 0.11453
}

Semantic roles & 50–950 ramp

primary
#7A42B7
secondary
#ACC68F
accent
#D75197
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7A42B7

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

Preview Lab → · Contrast checker → · Palette generator →

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