#7B40C8#7B40C8

#7B40C8 is a mid, highly saturated violet. Relative luminance 0.120; OKLCH L 51.7% C 0.200 H 299.1°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#7B40C8
RGBrgb(123, 64, 200)
HSLhsl(266, 55%, 52%)
HSVhsv(266, 68%, 78%)
CMYKcmyk(38.5%, 68%, 0%, 21.6%)
CIE-LABlab(41.29, 52.54, -61.35)
CIE-LCHlch(41.29, 80.77, 310.58°)
OKLaboklab(51.7% 0.0974 -0.1749)
OKLCHoklch(51.7% 0.2 299.1)
XYZxyz(20.4245, 12.0476, 55.8817)
Luminance0.1205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B40C8 #8DC840
analogous
#4049C8 #7B40C8 #BF40C8
triadic
#7B40C8 #C87B40 #40C87B
tetradic
#7B40C8 #C84049 #8DC840 #40C8BF
square
#7B40C8 #C84049 #8DC840 #40C8BF
split-complementary
#7B40C8 #C8BF40 #49C840
monochromatic
#42206E #5E2D9D #7B40C8 #9C70D6 #BD9FE3

Accessibility & contrast

On white

6.16
#7B40C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#7B40C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B40C8
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B40C8#FFFFFF#000000##FFFFFF
##7B40C81.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CC
Deuteranopia (green-blind)
#0060C5
Tritanopia (blue-blind)
#69607F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7b40c8;
/* rgb */ color: rgb(123, 64, 200);
/* oklch */ color: oklch(51.7% 0.200 299.1);
Tailwind
colors: {
  custom: {
    50: '#a779da',
    500: '#7b40c8',
    950: '#000000',
  },
}
SCSS
$custom: #7b40c8;
$custom-light: #a779da;
$custom-dark: #000000;
JSON
{
  "hex": "#7b40c8",
  "rgb": {
    "r": 123,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 266.029,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.517,
    "c": 0.20022,
    "h": 299.1
  },
  "luminance": 0.12048
}

Semantic roles & 50–950 ramp

primary
#7B40C8
secondary
#B6D094
accent
#DF499E
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7B40C8

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

Preview Lab → · Contrast checker → · Palette generator →

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