#7A45B7#7A45B7

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

Color values

HEX#7A45B7
RGBrgb(122, 69, 183)
HSLhsl(268, 45%, 49%)
HSVhsv(268, 62%, 72%)
CMYKcmyk(33.3%, 62.3%, 0%, 28.2%)
CIE-LABlab(40.92, 45.47, -52.03)
CIE-LCHlch(40.92, 69.10, 311.15°)
OKLaboklab(51.02% 0.0921 -0.1476)
OKLCHoklch(51.02% 0.174 302)
XYZxyz(18.6994, 11.8127, 46.0855)
Luminance0.1181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A45B7 #82B745
analogous
#4549B7 #7A45B7 #B345B7
triadic
#7A45B7 #B77A45 #45B77A
tetradic
#7A45B7 #B74549 #82B745 #45B7B3
square
#7A45B7 #B74549 #82B745 #45B7B3
split-complementary
#7A45B7 #B7B345 #49B745
monochromatic
#3F235E #5C348B #7A45B7 #9970C9 #B99DDA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7A45B7#FFFFFF#000000##FFFFFF
##7A45B71.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)
#0060BB
Deuteranopia (green-blind)
#2060B4
Tritanopia (blue-blind)
#6E5D77
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7a45b7;
/* rgb */ color: rgb(122, 69, 183);
/* oklch */ color: oklch(51.0% 0.174 302.0);
Tailwind
colors: {
  custom: {
    50: '#a57bcd',
    500: '#7a45b7',
    950: '#000000',
  },
}
SCSS
$custom: #7a45b7;
$custom-light: #a57bcd;
$custom-dark: #000000;
JSON
{
  "hex": "#7a45b7",
  "rgb": {
    "r": 122,
    "g": 69,
    "b": 183
  },
  "hsl": {
    "h": 267.895,
    "s": 45.238,
    "l": 49.412
  },
  "oklch": {
    "l": 0.51024,
    "c": 0.17398,
    "h": 302
  },
  "luminance": 0.11813
}

Semantic roles & 50–950 ramp

primary
#7A45B7
secondary
#AEC692
accent
#D55398
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7A45B7

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

Preview Lab → · Contrast checker → · Palette generator →

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