#7B40D3#7B40D3

#7B40D3 is a mid, highly saturated violet. Relative luminance 0.126; OKLCH L 52.6% C 0.212 H 296.8°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#7B40D3
RGBrgb(123, 64, 211)
HSLhsl(264, 63%, 54%)
HSVhsv(264, 70%, 83%)
CMYKcmyk(41.7%, 69.7%, 0%, 17.3%)
CIE-LABlab(42.12, 55.32, -66.35)
CIE-LCHlch(42.12, 86.39, 309.82°)
OKLaboklab(52.55% 0.0956 -0.1897)
OKLCHoklch(52.55% 0.212 296.8)
XYZxyz(21.7566, 12.5805, 62.8974)
Luminance0.1258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B40D3 #98D340
analogous
#404FD3 #7B40D3 #C540D3
triadic
#7B40D3 #D37B40 #40D37B
tetradic
#7B40D3 #D3404F #98D340 #40D3C5
square
#7B40D3 #D3404F #98D340 #40D3C5
split-complementary
#7B40D3 #D3C540 #4FD340
monochromatic
#431D7C #5E28AE #7B40D3 #9D72DE #C0A3EA

Accessibility & contrast

On white

5.97
#7B40D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#7B40D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B40D3
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B40D3#FFFFFF#000000##FFFFFF
##7B40D31.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D7
Deuteranopia (green-blind)
#0062D0
Tritanopia (blue-blind)
#646485
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7b40d3;
/* rgb */ color: rgb(123, 64, 211);
/* oklch */ color: oklch(52.6% 0.212 296.8);
Tailwind
colors: {
  custom: {
    50: '#a879e1',
    500: '#7b40d3',
    950: '#000000',
  },
}
SCSS
$custom: #7b40d3;
$custom-light: #a879e1;
$custom-dark: #000000;
JSON
{
  "hex": "#7b40d3",
  "rgb": {
    "r": 123,
    "g": 64,
    "b": 211
  },
  "hsl": {
    "h": 264.082,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.52554,
    "c": 0.21239,
    "h": 296.8
  },
  "luminance": 0.12581
}

Semantic roles & 50–950 ramp

primary
#7B40D3
secondary
#BED798
accent
#E642A4
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7B40D3

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

Preview Lab → · Contrast checker → · Palette generator →

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