#7A42BF#7A42BF

#7A42BF is a mid, vivid violet. Relative luminance 0.118; OKLCH L 51.2% C 0.187 H 300.5°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#7A42BF
RGBrgb(122, 66, 191)
HSLhsl(267, 49%, 50%)
HSVhsv(267, 65%, 75%)
CMYKcmyk(36.1%, 65.4%, 0%, 25.1%)
CIE-LABlab(40.89, 49.06, -56.77)
CIE-LCHlch(40.89, 75.03, 310.83°)
OKLaboklab(51.18% 0.095 -0.1615)
OKLCHoklch(51.18% 0.187 300.5)
XYZxyz(19.3759, 11.7954, 50.5361)
Luminance0.1180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A42BF #87BF42
analogous
#4248BF #7A42BF #B842BF
triadic
#7A42BF #BF7A42 #42BF7A
tetradic
#7A42BF #BF4248 #87BF42 #42BFB8
square
#7A42BF #BF4248 #87BF42 #42BFB8
split-complementary
#7A42BF #BFB842 #48BF42
monochromatic
#402265 #5D3292 #7A42BF #9A70CE #BA9DDE

Accessibility & contrast

On white

6.25
#7A42BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#7A42BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A42BF
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A42BF#FFFFFF#000000##FFFFFF
##7A42BF1.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C3
Deuteranopia (green-blind)
#0060BC
Tritanopia (blue-blind)
#6B5E7B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7a42bf;
/* rgb */ color: rgb(122, 66, 191);
/* oklch */ color: oklch(51.2% 0.187 300.5);
Tailwind
colors: {
  custom: {
    50: '#a57ad3',
    500: '#7a42bf',
    950: '#000000',
  },
}
SCSS
$custom: #7a42bf;
$custom-light: #a57ad3;
$custom-dark: #000000;
JSON
{
  "hex": "#7a42bf",
  "rgb": {
    "r": 122,
    "g": 66,
    "b": 191
  },
  "hsl": {
    "h": 266.88,
    "s": 49.407,
    "l": 50.392
  },
  "oklch": {
    "l": 0.51179,
    "c": 0.18735,
    "h": 300.5
  },
  "luminance": 0.11796
}

Semantic roles & 50–950 ramp

primary
#7A42BF
secondary
#B1CA93
accent
#D94F9B
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7A42BF

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

Preview Lab → · Contrast checker → · Palette generator →

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