#7B40CB#7B40CB

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

Color values

HEX#7B40CB
RGBrgb(123, 64, 203)
HSLhsl(265, 57%, 52%)
HSVhsv(265, 68%, 80%)
CMYKcmyk(39.4%, 68.5%, 0%, 20.4%)
CIE-LABlab(41.52, 53.29, -62.73)
CIE-LCHlch(41.52, 82.31, 310.35°)
OKLaboklab(51.93% 0.0969 -0.179)
OKLCHoklch(51.93% 0.204 298.4)
XYZxyz(20.7785, 12.1892, 57.7464)
Luminance0.1219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B40CB #90CB40
analogous
#404ACB #7B40CB #C140CB
triadic
#7B40CB #CB7B40 #40CB7B
tetradic
#7B40CB #CB404A #90CB40 #40CBC1
square
#7B40CB #CB404A #90CB40 #40CBC1
split-complementary
#7B40CB #CBC140 #4ACB40
monochromatic
#421F72 #5E2CA2 #7B40CB #9C70D8 #BDA0E5

Accessibility & contrast

On white

6.11
#7B40CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#7B40CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B40CB
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B40CB#FFFFFF#000000##FFFFFF
##7B40CB1.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7b40cb;
/* rgb */ color: rgb(123, 64, 203);
/* oklch */ color: oklch(51.9% 0.204 298.4);
Tailwind
colors: {
  custom: {
    50: '#a779dc',
    500: '#7b40cb',
    950: '#000000',
  },
}
SCSS
$custom: #7b40cb;
$custom-light: #a779dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7b40cb",
  "rgb": {
    "r": 123,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 265.468,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.5193,
    "c": 0.20355,
    "h": 298.4
  },
  "luminance": 0.1219
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7B40CB

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

Preview Lab → · Contrast checker → · Palette generator →

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