#7B40A2#7B40A2

#7B40A2 is a mid, vivid violet. Relative luminance 0.105; OKLCH L 49.0% C 0.157 H 309.6°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#7B40A2
RGBrgb(123, 64, 162)
HSLhsl(276, 43%, 44%)
HSVhsv(276, 60%, 64%)
CMYKcmyk(24.1%, 60.5%, 0%, 36.5%)
CIE-LABlab(38.70, 43.26, -43.12)
CIE-LCHlch(38.70, 61.08, 315.10°)
OKLaboklab(49.01% 0.1003 -0.1214)
OKLCHoklch(49.01% 0.157 309.6)
XYZxyz(16.5221, 10.4867, 35.3292)
Luminance0.1049 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B40A2 #67A240
analogous
#4A40A2 #7B40A2 #A24098
triadic
#7B40A2 #A27B40 #40A27B
tetradic
#7B40A2 #A24A40 #67A240 #4098A2
square
#7B40A2 #A24A40 #67A240 #4098A2
split-complementary
#7B40A2 #98A240 #40A24A
monochromatic
#381D4A #5A2F76 #7B40A2 #995FC0 #B58BD1

Accessibility & contrast

On white

6.78
#7B40A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#7B40A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B40A2
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B40A2#FFFFFF#000000##FFFFFF
##7B40A21.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A59A5
Deuteranopia (green-blind)
#345CA0
Tritanopia (blue-blind)
#76536B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7b40a2;
/* rgb */ color: rgb(123, 64, 162);
/* oklch */ color: oklch(49.0% 0.157 309.6);
Tailwind
colors: {
  custom: {
    50: '#a478be',
    500: '#7b40a2',
    950: '#000000',
  },
}
SCSS
$custom: #7b40a2;
$custom-light: #a478be;
$custom-dark: #000000;
JSON
{
  "hex": "#7b40a2",
  "rgb": {
    "r": 123,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 276.122,
    "s": 43.363,
    "l": 44.314
  },
  "oklch": {
    "l": 0.49008,
    "c": 0.15745,
    "h": 309.6
  },
  "luminance": 0.10486
}

Semantic roles & 50–950 ramp

primary
#7B40A2
secondary
#99BC82
accent
#D35587
background
#FAF7FB
surface
#F4EDF7
border
#CEC8D0
text
#0F0912
muted
#7F7B81

Preview Lab

Preview with #7B40A2

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

Preview Lab → · Contrast checker → · Palette generator →

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