#7D40BE#7D40BE

#7D40BE is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.2% C 0.189 H 302.4°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#7D40BE
RGBrgb(125, 64, 190)
HSLhsl(269, 50%, 50%)
HSVhsv(269, 66%, 75%)
CMYKcmyk(34.2%, 66.3%, 0%, 25.5%)
CIE-LABlab(40.81, 50.46, -56.30)
CIE-LCHlch(40.81, 75.60, 311.87°)
OKLaboklab(51.18% 0.1014 -0.16)
OKLCHoklch(51.18% 0.189 302.4)
XYZxyz(19.5829, 11.7444, 49.9404)
Luminance0.1174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D40BE #81BE40
analogous
#4042BE #7D40BE #BC40BE
triadic
#7D40BE #BE7D40 #40BE7D
tetradic
#7D40BE #BE4042 #81BE40 #40BEBC
square
#7D40BE #BE4042 #81BE40 #40BEBC
split-complementary
#7D40BE #BEBC40 #42BE40
monochromatic
#412162 #5F3190 #7D40BE #9C6DCE #BB9BDD

Accessibility & contrast

On white

6.27
#7D40BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#7D40BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D40BE
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D40BE#FFFFFF#000000##FFFFFF
##7D40BE1.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC2
Deuteranopia (green-blind)
#0760BB
Tritanopia (blue-blind)
#705C79
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7d40be;
/* rgb */ color: rgb(125, 64, 190);
/* oklch */ color: oklch(51.2% 0.189 302.4);
Tailwind
colors: {
  custom: {
    50: '#a779d2',
    500: '#7d40be',
    950: '#000000',
  },
}
SCSS
$custom: #7d40be;
$custom-light: #a779d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7d40be",
  "rgb": {
    "r": 125,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 269.048,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.51177,
    "c": 0.18943,
    "h": 302.4
  },
  "luminance": 0.11744
}

Semantic roles & 50–950 ramp

primary
#7D40BE
secondary
#AEC990
accent
#D94F96
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7D40BE

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

Preview Lab → · Contrast checker → · Palette generator →

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