#7D40B3#7D40B3

#7D40B3 is a mid, vivid violet. Relative luminance 0.113; OKLCH L 50.4% C 0.177 H 305.3°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#7D40B3
RGBrgb(125, 64, 179)
HSLhsl(272, 47%, 48%)
HSVhsv(272, 64%, 70%)
CMYKcmyk(30.2%, 64.2%, 0%, 29.8%)
CIE-LABlab(40.05, 47.78, -51.05)
CIE-LCHlch(40.05, 69.92, 313.10°)
OKLaboklab(50.39% 0.1024 -0.1446)
OKLCHoklch(50.39% 0.177 305.3)
XYZxyz(18.4257, 11.2816, 43.8459)
Luminance0.1128 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D40B3 #76B340
analogous
#4340B3 #7D40B3 #B340AF
triadic
#7D40B3 #B37D40 #40B37D
tetradic
#7D40B3 #B34340 #76B340 #40AFB3
square
#7D40B3 #B34340 #76B340 #40AFB3
split-complementary
#7D40B3 #AFB340 #40B343
monochromatic
#3E2059 #5E3086 #7D40B3 #9B67C9 #B994D9

Accessibility & contrast

On white

6.45
#7D40B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#7D40B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D40B3
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D40B3#FFFFFF#000000##FFFFFF
##7D40B31.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB7
Deuteranopia (green-blind)
#235FB0
Tritanopia (blue-blind)
#735874
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7d40b3;
/* rgb */ color: rgb(125, 64, 179);
/* oklch */ color: oklch(50.4% 0.177 305.3);
Tailwind
colors: {
  custom: {
    50: '#a778ca',
    500: '#7d40b3',
    950: '#000000',
  },
}
SCSS
$custom: #7d40b3;
$custom-light: #a778ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7d40b3",
  "rgb": {
    "r": 125,
    "g": 64,
    "b": 179
  },
  "hsl": {
    "h": 271.826,
    "s": 47.325,
    "l": 47.647
  },
  "oklch": {
    "l": 0.50392,
    "c": 0.17716,
    "h": 305.3
  },
  "luminance": 0.11281
}

Semantic roles & 50–950 ramp

primary
#7D40B3
secondary
#A6C48A
accent
#D75190
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7D40B3

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

Preview Lab → · Contrast checker → · Palette generator →

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