#7B40AF#7B40AF

#7B40AF is a mid, vivid violet. Relative luminance 0.110; OKLCH L 49.9% C 0.172 H 305.5°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#7B40AF
RGBrgb(123, 64, 175)
HSLhsl(272, 46%, 47%)
HSVhsv(272, 63%, 69%)
CMYKcmyk(29.7%, 63.4%, 0%, 31.4%)
CIE-LABlab(39.53, 46.36, -49.53)
CIE-LCHlch(39.53, 67.84, 313.11°)
OKLaboklab(49.88% 0.0999 -0.1402)
OKLCHoklch(49.88% 0.172 305.5)
XYZxyz(17.7380, 10.9730, 41.7327)
Luminance0.1097 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B40AF #74AF40
analogous
#4440AF #7B40AF #AF40AC
triadic
#7B40AF #AF7B40 #40AF7B
tetradic
#7B40AF #AF4440 #74AF40 #40ACAF
square
#7B40AF #AF4440 #74AF40 #40ACAF
split-complementary
#7B40AF #ACAF40 #40AF44
monochromatic
#3C1F55 #5C3082 #7B40AF #9965C7 #B792D7

Accessibility & contrast

On white

6.57
#7B40AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#7B40AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B40AF
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B40AF#FFFFFF#000000##FFFFFF
##7B40AF1.006.573.196.57
#FFFFFF6.571.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB2
Deuteranopia (green-blind)
#265DAD
Tritanopia (blue-blind)
#725771
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7b40af;
/* rgb */ color: rgb(123, 64, 175);
/* oklch */ color: oklch(49.9% 0.172 305.5);
Tailwind
colors: {
  custom: {
    50: '#a578c7',
    500: '#7b40af',
    950: '#000000',
  },
}
SCSS
$custom: #7b40af;
$custom-light: #a578c7;
$custom-dark: #000000;
JSON
{
  "hex": "#7b40af",
  "rgb": {
    "r": 123,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 271.892,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.49879,
    "c": 0.17216,
    "h": 305.5
  },
  "luminance": 0.10973
}

Semantic roles & 50–950 ramp

primary
#7B40AF
secondary
#A4C388
accent
#D65290
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7B40AF

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

Preview Lab → · Contrast checker → · Palette generator →

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