#7B40CD#7B40CD

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

Color values

HEX#7B40CD
RGBrgb(123, 64, 205)
HSLhsl(265, 59%, 53%)
HSVhsv(265, 69%, 80%)
CMYKcmyk(40%, 68.8%, 0%, 19.6%)
CIE-LABlab(41.67, 53.80, -63.64)
CIE-LCHlch(41.67, 83.33, 310.21°)
OKLaboklab(52.08% 0.0966 -0.1817)
OKLCHoklch(52.08% 0.206 298)
XYZxyz(21.0184, 12.2852, 59.0097)
Luminance0.1229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B40CD #92CD40
analogous
#404CCD #7B40CD #C140CD
triadic
#7B40CD #CD7B40 #40CD7B
tetradic
#7B40CD #CD404C #92CD40 #40CDC1
square
#7B40CD #CD404C #92CD40 #40CDC1
split-complementary
#7B40CD #CDC140 #4CCD40
monochromatic
#421E74 #5E2BA5 #7B40CD #9D71DA #BEA1E6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B40CD#FFFFFF#000000##FFFFFF
##7B40CD1.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)
#0063D1
Deuteranopia (green-blind)
#0061CA
Tritanopia (blue-blind)
#676282
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7b40cd;
/* rgb */ color: rgb(123, 64, 205);
/* oklch */ color: oklch(52.1% 0.206 298.0);
Tailwind
colors: {
  custom: {
    50: '#a779dd',
    500: '#7b40cd',
    950: '#000000',
  },
}
SCSS
$custom: #7b40cd;
$custom-light: #a779dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7b40cd",
  "rgb": {
    "r": 123,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 265.106,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.52084,
    "c": 0.20577,
    "h": 298
  },
  "luminance": 0.12286
}

Semantic roles & 50–950 ramp

primary
#7B40CD
secondary
#B9D396
accent
#E246A1
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7B40CD

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

Preview Lab → · Contrast checker → · Palette generator →

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