#7A45CD#7A45CD

#7A45CD is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.6% C 0.199 H 296.9°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#7A45CD
RGBrgb(122, 69, 205)
HSLhsl(263, 58%, 54%)
HSVhsv(263, 66%, 80%)
CMYKcmyk(40.5%, 66.3%, 0%, 19.6%)
CIE-LABlab(42.46, 51.10, -62.35)
CIE-LCHlch(42.46, 80.61, 309.34°)
OKLaboklab(52.63% 0.0901 -0.1779)
OKLCHoklch(52.63% 0.199 296.9)
XYZxyz(21.1707, 12.8012, 59.1012)
Luminance0.1280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A45CD #98CD45
analogous
#4554CD #7A45CD #BE45CD
triadic
#7A45CD #CD7A45 #45CD7A
tetradic
#7A45CD #CD4554 #98CD45 #45CDBE
square
#7A45CD #CD4554 #98CD45 #45CDBE
split-complementary
#7A45CD #CDBE45 #54CD45
monochromatic
#422077 #5D2DA8 #7A45CD #9C75DA #BFA5E7

Accessibility & contrast

On white

5.90
#7A45CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#7A45CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A45CD
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A45CD#FFFFFF#000000##FFFFFF
##7A45CD1.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D1
Deuteranopia (green-blind)
#0063CA
Tritanopia (blue-blind)
#656583
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7a45cd;
/* rgb */ color: rgb(122, 69, 205);
/* oklch */ color: oklch(52.6% 0.199 296.9);
Tailwind
colors: {
  custom: {
    50: '#a77cdd',
    500: '#7a45cd',
    950: '#000000',
  },
}
SCSS
$custom: #7a45cd;
$custom-light: #a77cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#7a45cd",
  "rgb": {
    "r": 122,
    "g": 69,
    "b": 205
  },
  "hsl": {
    "h": 263.382,
    "s": 57.627,
    "l": 53.725
  },
  "oklch": {
    "l": 0.52629,
    "c": 0.19944,
    "h": 296.9
  },
  "luminance": 0.12802
}

Semantic roles & 50–950 ramp

primary
#7A45CD
secondary
#BDD49A
accent
#E147A5
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7A45CD

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

Preview Lab → · Contrast checker → · Palette generator →

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