#7B40CA#7B40CA

#7B40CA is a mid, highly saturated violet. Relative luminance 0.121; OKLCH L 51.9% C 0.202 H 298.7°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#7B40CA
RGBrgb(123, 64, 202)
HSLhsl(266, 57%, 52%)
HSVhsv(266, 68%, 79%)
CMYKcmyk(39.1%, 68.3%, 0%, 20.8%)
CIE-LABlab(41.44, 53.04, -62.27)
CIE-LCHlch(41.44, 81.80, 310.43°)
OKLaboklab(51.85% 0.0971 -0.1776)
OKLCHoklch(51.85% 0.202 298.7)
XYZxyz(20.6597, 12.1417, 57.1208)
Luminance0.1214 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B40CA #8FCA40
analogous
#404ACA #7B40CA #C040CA
triadic
#7B40CA #CA7B40 #40CA7B
tetradic
#7B40CA #CA404A #8FCA40 #40CAC0
square
#7B40CA #CA404A #8FCA40 #40CAC0
split-complementary
#7B40CA #CAC040 #4ACA40
monochromatic
#421F70 #5E2CA0 #7B40CA #9C70D7 #BDA0E5

Accessibility & contrast

On white

6.13
#7B40CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#7B40CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B40CA
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B40CA#FFFFFF#000000##FFFFFF
##7B40CA1.006.133.436.13
#FFFFFF6.131.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CE
Deuteranopia (green-blind)
#0060C7
Tritanopia (blue-blind)
#686180
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7b40ca;
/* rgb */ color: rgb(123, 64, 202);
/* oklch */ color: oklch(51.9% 0.202 298.7);
Tailwind
colors: {
  custom: {
    50: '#a779db',
    500: '#7b40ca',
    950: '#000000',
  },
}
SCSS
$custom: #7b40ca;
$custom-light: #a779db;
$custom-dark: #000000;
JSON
{
  "hex": "#7b40ca",
  "rgb": {
    "r": 123,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 265.652,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.51853,
    "c": 0.20244,
    "h": 298.7
  },
  "luminance": 0.12142
}

Semantic roles & 50–950 ramp

primary
#7B40CA
secondary
#B7D195
accent
#E0489F
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7B40CA

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

Preview Lab → · Contrast checker → · Palette generator →

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