#7A40CC#7A40CC

#7A40CC is a mid, highly saturated violet. Relative luminance 0.122; OKLCH L 51.9% C 0.205 H 297.8°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#7A40CC
RGBrgb(122, 64, 204)
HSLhsl(265, 58%, 53%)
HSVhsv(265, 69%, 80%)
CMYKcmyk(40.2%, 68.6%, 0%, 20%)
CIE-LABlab(41.48, 53.36, -63.37)
CIE-LCHlch(41.48, 82.84, 310.10°)
OKLaboklab(51.9% 0.0954 -0.1809)
OKLCHoklch(51.9% 0.205 297.8)
XYZxyz(20.7557, 12.1637, 58.3693)
Luminance0.1216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A40CC #92CC40
analogous
#404CCC #7A40CC #C040CC
triadic
#7A40CC #CC7A40 #40CC7A
tetradic
#7A40CC #CC404C #92CC40 #40CCC0
square
#7A40CC #CC404C #92CC40 #40CCC0
split-complementary
#7A40CC #CCC040 #4CCC40
monochromatic
#421F73 #5D2CA3 #7A40CC #9C70D9 #BDA1E6

Accessibility & contrast

On white

6.12
#7A40CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#7A40CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A40CC
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A40CC#FFFFFF#000000##FFFFFF
##7A40CC1.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D0
Deuteranopia (green-blind)
#0060C9
Tritanopia (blue-blind)
#666281
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7a40cc;
/* rgb */ color: rgb(122, 64, 204);
/* oklch */ color: oklch(51.9% 0.205 297.8);
Tailwind
colors: {
  custom: {
    50: '#a779dc',
    500: '#7a40cc',
    950: '#000000',
  },
}
SCSS
$custom: #7a40cc;
$custom-light: #a779dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7a40cc",
  "rgb": {
    "r": 122,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 264.857,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.51898,
    "c": 0.20454,
    "h": 297.8
  },
  "luminance": 0.12164
}

Semantic roles & 50–950 ramp

primary
#7A40CC
secondary
#B9D295
accent
#E147A1
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7A40CC

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

Preview Lab → · Contrast checker → · Palette generator →

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