#7045D2#7045D2

#7045D2 is a mid, highly saturated violet. Relative luminance 0.124; OKLCH L 52.0% C 0.205 H 291.7°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#7045D2
RGBrgb(112, 69, 210)
HSLhsl(258, 61%, 55%)
HSVhsv(258, 67%, 82%)
CMYKcmyk(46.7%, 67.1%, 0%, 17.6%)
CIE-LABlab(41.77, 50.54, -66.40)
CIE-LCHlch(41.77, 83.45, 307.28°)
OKLaboklab(52.01% 0.0756 -0.1902)
OKLCHoklch(52.01% 0.205 291.7)
XYZxyz(20.4398, 12.3534, 62.2678)
Luminance0.1235 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7045D2 #A7D245
analogous
#4561D2 #7045D2 #B745D2
triadic
#7045D2 #D27045 #45D270
tetradic
#7045D2 #D24561 #A7D245 #45D2B7
square
#7045D2 #D24561 #A7D245 #45D2B7
split-complementary
#7045D2 #D2B745 #61D245
monochromatic
#3C1F7E #532AAF #7045D2 #9676DE #BCA8EA

Accessibility & contrast

On white

6.05
#7045D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#7045D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7045D2
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7045D2#FFFFFF#000000##FFFFFF
##7045D21.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D6
Deuteranopia (green-blind)
#0060CF
Tritanopia (blue-blind)
#526886
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7045d2;
/* rgb */ color: rgb(112, 69, 210);
/* oklch */ color: oklch(52.0% 0.205 291.7);
Tailwind
colors: {
  custom: {
    50: '#a17ce1',
    500: '#7045d2',
    950: '#000000',
  },
}
SCSS
$custom: #7045d2;
$custom-light: #a17ce1;
$custom-dark: #000000;
JSON
{
  "hex": "#7045d2",
  "rgb": {
    "r": 112,
    "g": 69,
    "b": 210
  },
  "hsl": {
    "h": 258.298,
    "s": 61.039,
    "l": 54.706
  },
  "oklch": {
    "l": 0.52006,
    "c": 0.20467,
    "h": 291.7
  },
  "luminance": 0.12354
}

Semantic roles & 50–950 ramp

primary
#7045D2
secondary
#C5D79C
accent
#E444B3
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7045D2

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

Preview Lab → · Contrast checker → · Palette generator →

#7045D2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva