#7A40CB#7A40CB

#7A40CB is a mid, highly saturated violet. Relative luminance 0.121; OKLCH L 51.8% C 0.203 H 298.0°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#7A40CB
RGBrgb(122, 64, 203)
HSLhsl(265, 57%, 52%)
HSVhsv(265, 68%, 80%)
CMYKcmyk(39.9%, 68.5%, 0%, 20.4%)
CIE-LABlab(41.40, 53.10, -62.92)
CIE-LCHlch(41.40, 82.33, 310.16°)
OKLaboklab(51.82% 0.0955 -0.1796)
OKLCHoklch(51.82% 0.203 298)
XYZxyz(20.6362, 12.1158, 57.7397)
Luminance0.1212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A40CB #91CB40
analogous
#404BCB #7A40CB #C040CB
triadic
#7A40CB #CB7A40 #40CB7A
tetradic
#7A40CB #CB404B #91CB40 #40CBC0
square
#7A40CB #CB404B #91CB40 #40CBC0
split-complementary
#7A40CB #CBC040 #4BCB40
monochromatic
#411F72 #5D2CA2 #7A40CB #9B70D8 #BDA0E5

Accessibility & contrast

On white

6.13
#7A40CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#7A40CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A40CB
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A40CB#FFFFFF#000000##FFFFFF
##7A40CB1.006.133.426.13
#FFFFFF6.131.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CF
Deuteranopia (green-blind)
#0060C8
Tritanopia (blue-blind)
#666181
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7a40cb;
/* rgb */ color: rgb(122, 64, 203);
/* oklch */ color: oklch(51.8% 0.203 298.0);
Tailwind
colors: {
  custom: {
    50: '#a779dc',
    500: '#7a40cb',
    950: '#000000',
  },
}
SCSS
$custom: #7a40cb;
$custom-light: #a779dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7a40cb",
  "rgb": {
    "r": 122,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 265.036,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.51821,
    "c": 0.20342,
    "h": 298
  },
  "luminance": 0.12116
}

Semantic roles & 50–950 ramp

primary
#7A40CB
secondary
#B8D295
accent
#E047A1
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7A40CB

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

Preview Lab → · Contrast checker → · Palette generator →

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