#7A40CF#7A40CF

#7A40CF is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 52.1% C 0.208 H 297.2°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#7A40CF
RGBrgb(122, 64, 207)
HSLhsl(264, 60%, 53%)
HSVhsv(264, 69%, 81%)
CMYKcmyk(41.1%, 69.1%, 0%, 18.8%)
CIE-LABlab(41.70, 54.12, -64.74)
CIE-LCHlch(41.70, 84.38, 309.90°)
OKLaboklab(52.13% 0.0949 -0.1849)
OKLCHoklch(52.13% 0.208 297.2)
XYZxyz(21.1190, 12.3090, 60.2826)
Luminance0.1231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A40CF #95CF40
analogous
#404DCF #7A40CF #C240CF
triadic
#7A40CF #CF7A40 #40CF7A
tetradic
#7A40CF #CF404D #95CF40 #40CFC2
square
#7A40CF #CF404D #95CF40 #40CFC2
split-complementary
#7A40CF #CFC240 #4DCF40
monochromatic
#421E77 #5D2AA8 #7A40CF #9C71DB #BEA2E8

Accessibility & contrast

On white

6.07
#7A40CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#7A40CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A40CF
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A40CF#FFFFFF#000000##FFFFFF
##7A40CF1.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D3
Deuteranopia (green-blind)
#0061CC
Tritanopia (blue-blind)
#656383
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7a40cf;
/* rgb */ color: rgb(122, 64, 207);
/* oklch */ color: oklch(52.1% 0.208 297.2);
Tailwind
colors: {
  custom: {
    50: '#a779df',
    500: '#7a40cf',
    950: '#000000',
  },
}
SCSS
$custom: #7a40cf;
$custom-light: #a779df;
$custom-dark: #000000;
JSON
{
  "hex": "#7a40cf",
  "rgb": {
    "r": 122,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 264.336,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.52133,
    "c": 0.20787,
    "h": 297.2
  },
  "luminance": 0.12309
}

Semantic roles & 50–950 ramp

primary
#7A40CF
secondary
#BBD497
accent
#E345A3
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7A40CF

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

Preview Lab → · Contrast checker → · Palette generator →

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