#7A45C8#7A45C8

#7A45C8 is a mid, vivid violet. Relative luminance 0.126; OKLCH L 52.3% C 0.194 H 297.9°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#7A45C8
RGBrgb(122, 69, 200)
HSLhsl(264, 54%, 53%)
HSVhsv(264, 66%, 78%)
CMYKcmyk(39%, 65.5%, 0%, 21.6%)
CIE-LABlab(42.10, 49.80, -60.05)
CIE-LCHlch(42.10, 78.01, 309.67°)
OKLaboklab(52.25% 0.0907 -0.1712)
OKLCHoklch(52.25% 0.194 297.9)
XYZxyz(20.5768, 12.5636, 55.9733)
Luminance0.1256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A45C8 #93C845
analogous
#4551C8 #7A45C8 #BC45C8
triadic
#7A45C8 #C87A45 #45C87A
tetradic
#7A45C8 #C84551 #93C845 #45C8BC
square
#7A45C8 #C84551 #93C845 #45C8BC
split-complementary
#7A45C8 #C8BC45 #51C845
monochromatic
#422171 #5D2FA0 #7A45C8 #9C74D6 #BEA3E4

Accessibility & contrast

On white

5.98
#7A45C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#7A45C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A45C8
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A45C8#FFFFFF#000000##FFFFFF
##7A45C81.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CC
Deuteranopia (green-blind)
#0062C5
Tritanopia (blue-blind)
#676380
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7a45c8;
/* rgb */ color: rgb(122, 69, 200);
/* oklch */ color: oklch(52.3% 0.194 297.9);
Tailwind
colors: {
  custom: {
    50: '#a67cda',
    500: '#7a45c8',
    950: '#000000',
  },
}
SCSS
$custom: #7a45c8;
$custom-light: #a67cda;
$custom-dark: #000000;
JSON
{
  "hex": "#7a45c8",
  "rgb": {
    "r": 122,
    "g": 69,
    "b": 200
  },
  "hsl": {
    "h": 264.275,
    "s": 54.357,
    "l": 52.745
  },
  "oklch": {
    "l": 0.52253,
    "c": 0.19371,
    "h": 297.9
  },
  "luminance": 0.12564
}

Semantic roles & 50–950 ramp

primary
#7A45C8
secondary
#BAD198
accent
#DE4AA2
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7A45C8

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

Preview Lab → · Contrast checker → · Palette generator →

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