#7E45AF#7E45AF

#7E45AF is a mid, vivid violet. Relative luminance 0.118; OKLCH L 50.9% C 0.166 H 306.2°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#7E45AF
RGBrgb(126, 69, 175)
HSLhsl(272, 43%, 48%)
HSVhsv(272, 61%, 69%)
CMYKcmyk(28%, 60.6%, 0%, 31.4%)
CIE-LABlab(40.88, 44.45, -47.35)
CIE-LCHlch(40.88, 64.95, 313.19°)
OKLaboklab(50.93% 0.0977 -0.1337)
OKLCHoklch(50.93% 0.166 306.2)
XYZxyz(18.4685, 11.7872, 41.8513)
Luminance0.1179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E45AF #76AF45
analogous
#4945AF #7E45AF #AF45AB
triadic
#7E45AF #AF7E45 #45AF7E
tetradic
#7E45AF #AF4945 #76AF45 #45ABAF
square
#7E45AF #AF4945 #76AF45 #45ABAF
split-complementary
#7E45AF #ABAF45 #45AF49
monochromatic
#3F2257 #5E3483 #7E45AF #9C6CC5 #BA98D6

Accessibility & contrast

On white

6.25
#7E45AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#7E45AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E45AF
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E45AF#FFFFFF#000000##FFFFFF
##7E45AF1.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#135FB2
Deuteranopia (green-blind)
#3061AD
Tritanopia (blue-blind)
#765A73
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7e45af;
/* rgb */ color: rgb(126, 69, 175);
/* oklch */ color: oklch(50.9% 0.166 306.2);
Tailwind
colors: {
  custom: {
    50: '#a77bc7',
    500: '#7e45af',
    950: '#000000',
  },
}
SCSS
$custom: #7e45af;
$custom-light: #a77bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e45af",
  "rgb": {
    "r": 126,
    "g": 69,
    "b": 175
  },
  "hsl": {
    "h": 272.264,
    "s": 43.443,
    "l": 47.843
  },
  "oklch": {
    "l": 0.50934,
    "c": 0.16565,
    "h": 306.2
  },
  "luminance": 0.11787
}

Semantic roles & 50–950 ramp

primary
#7E45AF
secondary
#A6C28D
accent
#D3558F
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7E45AF

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

Preview Lab → · Contrast checker → · Palette generator →

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