#7B40CC#7B40CC

#7B40CC is a mid, highly saturated violet. Relative luminance 0.122; OKLCH L 52.0% C 0.205 H 298.2°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#7B40CC
RGBrgb(123, 64, 204)
HSLhsl(265, 58%, 53%)
HSVhsv(265, 69%, 80%)
CMYKcmyk(39.7%, 68.6%, 0%, 20%)
CIE-LABlab(41.59, 53.55, -63.18)
CIE-LCHlch(41.59, 82.82, 310.28°)
OKLaboklab(52.01% 0.0968 -0.1803)
OKLCHoklch(52.01% 0.205 298.2)
XYZxyz(20.8981, 12.2371, 58.3760)
Luminance0.1224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B40CC #91CC40
analogous
#404BCC #7B40CC #C140CC
triadic
#7B40CC #CC7B40 #40CC7B
tetradic
#7B40CC #CC404B #91CC40 #40CCC1
square
#7B40CC #CC404B #91CC40 #40CCC1
split-complementary
#7B40CC #CCC140 #4BCC40
monochromatic
#421F73 #5E2CA3 #7B40CC #9C70D9 #BEA1E6

Accessibility & contrast

On white

6.09
#7B40CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#7B40CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B40CC
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B40CC#FFFFFF#000000##FFFFFF
##7B40CC1.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D0
Deuteranopia (green-blind)
#0061C9
Tritanopia (blue-blind)
#676281
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7b40cc;
/* rgb */ color: rgb(123, 64, 204);
/* oklch */ color: oklch(52.0% 0.205 298.2);
Tailwind
colors: {
  custom: {
    50: '#a779dc',
    500: '#7b40cc',
    950: '#000000',
  },
}
SCSS
$custom: #7b40cc;
$custom-light: #a779dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7b40cc",
  "rgb": {
    "r": 123,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 265.286,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.52007,
    "c": 0.20466,
    "h": 298.2
  },
  "luminance": 0.12237
}

Semantic roles & 50–950 ramp

primary
#7B40CC
secondary
#B9D295
accent
#E147A0
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7B40CC

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

Preview Lab → · Contrast checker → · Palette generator →

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