#7045DC#7045DC

#7045DC is a mid, highly saturated violet. Relative luminance 0.129; OKLCH L 52.8% C 0.216 H 290.0°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#7045DC
RGBrgb(112, 69, 220)
HSLhsl(257, 68%, 57%)
HSVhsv(257, 69%, 86%)
CMYKcmyk(49.1%, 68.6%, 0%, 13.7%)
CIE-LABlab(42.56, 53.28, -70.85)
CIE-LCHlch(42.56, 88.65, 306.95°)
OKLaboklab(52.82% 0.074 -0.2032)
OKLCHoklch(52.82% 0.216 290)
XYZxyz(21.7248, 12.8674, 69.0352)
Luminance0.1287 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7045DC #B1DC45
analogous
#4566DC #7045DC #BC45DC
triadic
#7045DC #DC7045 #45DC70
tetradic
#7045DC #DC4566 #B1DC45 #45DCBC
square
#7045DC #DC4566 #B1DC45 #45DCBC
split-complementary
#7045DC #DCBC45 #66DC45
monochromatic
#3B1A8C #5024C0 #7045DC #9879E6 #BFACEF

Accessibility & contrast

On white

5.88
#7045DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#7045DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7045DC
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7045DC#FFFFFF#000000##FFFFFF
##7045DC1.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067E1
Deuteranopia (green-blind)
#0061D9
Tritanopia (blue-blind)
#4B6B8B
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7045dc;
/* rgb */ color: rgb(112, 69, 220);
/* oklch */ color: oklch(52.8% 0.216 290.0);
Tailwind
colors: {
  custom: {
    50: '#a27ce8',
    500: '#7045dc',
    950: '#000000',
  },
}
SCSS
$custom: #7045dc;
$custom-light: #a27ce8;
$custom-dark: #000000;
JSON
{
  "hex": "#7045dc",
  "rgb": {
    "r": 112,
    "g": 69,
    "b": 220
  },
  "hsl": {
    "h": 257.086,
    "s": 68.326,
    "l": 56.667
  },
  "oklch": {
    "l": 0.52818,
    "c": 0.21631,
    "h": 290
  },
  "luminance": 0.12868
}

Semantic roles & 50–950 ramp

primary
#7045DC
secondary
#CCDDA0
accent
#EB3DB9
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100A16
muted
#7F7C84

Preview Lab

Preview with #7045DC

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

Preview Lab → · Contrast checker → · Palette generator →

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