#7D45AB#7D45AB

#7D45AB is a mid, vivid violet. Relative luminance 0.116; OKLCH L 50.6% C 0.161 H 306.9°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#7D45AB
RGBrgb(125, 69, 171)
HSLhsl(273, 43%, 47%)
HSVhsv(273, 60%, 67%)
CMYKcmyk(26.9%, 59.6%, 0%, 32.9%)
CIE-LABlab(40.50, 43.24, -45.59)
CIE-LCHlch(40.50, 62.83, 313.48°)
OKLaboklab(50.56% 0.0964 -0.1286)
OKLCHoklch(50.56% 0.161 306.9)
XYZxyz(17.9347, 11.5567, 39.8060)
Luminance0.1156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D45AB #73AB45
analogous
#4A45AB #7D45AB #AB45A6
triadic
#7D45AB #AB7D45 #45AB7D
tetradic
#7D45AB #AB4A45 #73AB45 #45A6AB
square
#7D45AB #AB4A45 #73AB45 #45A6AB
split-complementary
#7D45AB #A6AB45 #45AB4A
monochromatic
#3D2254 #5D337F #7D45AB #9B6AC3 #B896D5

Accessibility & contrast

On white

6.34
#7D45AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#7D45AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D45AB
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D45AB#FFFFFF#000000##FFFFFF
##7D45AB1.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A5DAE
Deuteranopia (green-blind)
#3360A9
Tritanopia (blue-blind)
#765971
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7d45ab;
/* rgb */ color: rgb(125, 69, 171);
/* oklch */ color: oklch(50.6% 0.161 306.9);
Tailwind
colors: {
  custom: {
    50: '#a67bc4',
    500: '#7d45ab',
    950: '#000000',
  },
}
SCSS
$custom: #7d45ab;
$custom-light: #a67bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#7d45ab",
  "rgb": {
    "r": 125,
    "g": 69,
    "b": 171
  },
  "hsl": {
    "h": 272.941,
    "s": 42.5,
    "l": 47.059
  },
  "oklch": {
    "l": 0.50555,
    "c": 0.16074,
    "h": 306.9
  },
  "luminance": 0.11556
}

Semantic roles & 50–950 ramp

primary
#7D45AB
secondary
#A3C08B
accent
#D2568E
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7D45AB

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

Preview Lab → · Contrast checker → · Palette generator →

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