#7A42CF#7A42CF

#7A42CF is a mid, highly saturated violet. Relative luminance 0.125; OKLCH L 52.4% C 0.205 H 296.9°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#7A42CF
RGBrgb(122, 66, 207)
HSLhsl(264, 59%, 54%)
HSVhsv(264, 68%, 81%)
CMYKcmyk(41.1%, 68.1%, 0%, 18.8%)
CIE-LABlab(42.06, 53.13, -64.16)
CIE-LCHlch(42.06, 83.30, 309.63°)
OKLaboklab(52.39% 0.0929 -0.1832)
OKLCHoklch(52.39% 0.205 296.9)
XYZxyz(21.2338, 12.5386, 60.3208)
Luminance0.1254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A42CF #97CF42
analogous
#4250CF #7A42CF #C142CF
triadic
#7A42CF #CF7A42 #42CF7A
tetradic
#7A42CF #CF4250 #97CF42 #42CFC1
square
#7A42CF #CF4250 #97CF42 #42CFC1
split-complementary
#7A42CF #CFC142 #50CF42
monochromatic
#421F78 #5D2BA9 #7A42CF #9C73DB #BFA4E8

Accessibility & contrast

On white

5.99
#7A42CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#7A42CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A42CF
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A42CF#FFFFFF#000000##FFFFFF
##7A42CF1.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D3
Deuteranopia (green-blind)
#0061CC
Tritanopia (blue-blind)
#646483
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7a42cf;
/* rgb */ color: rgb(122, 66, 207);
/* oklch */ color: oklch(52.4% 0.205 296.9);
Tailwind
colors: {
  custom: {
    50: '#a77adf',
    500: '#7a42cf',
    950: '#000000',
  },
}
SCSS
$custom: #7a42cf;
$custom-light: #a77adf;
$custom-dark: #000000;
JSON
{
  "hex": "#7a42cf",
  "rgb": {
    "r": 122,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 263.83,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.52387,
    "c": 0.20545,
    "h": 296.9
  },
  "luminance": 0.12539
}

Semantic roles & 50–950 ramp

primary
#7A42CF
secondary
#BDD598
accent
#E345A4
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7A42CF

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

Preview Lab → · Contrast checker → · Palette generator →

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