#7045D6#7045D6

#7045D6 is a mid, highly saturated violet. Relative luminance 0.126; OKLCH L 52.3% C 0.209 H 291.0°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#7045D6
RGBrgb(112, 69, 214)
HSLhsl(258, 64%, 55%)
HSVhsv(258, 68%, 84%)
CMYKcmyk(47.7%, 67.8%, 0%, 16.1%)
CIE-LABlab(42.09, 51.64, -68.19)
CIE-LCHlch(42.09, 85.54, 307.13°)
OKLaboklab(52.33% 0.075 -0.1954)
OKLCHoklch(52.33% 0.209 291)
XYZxyz(20.9444, 12.5552, 64.9251)
Luminance0.1256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7045D6 #ABD645
analogous
#4562D6 #7045D6 #B845D6
triadic
#7045D6 #D67045 #45D670
tetradic
#7045D6 #D64562 #ABD645 #45D6B8
square
#7045D6 #D64562 #ABD645 #45D6B8
split-complementary
#7045D6 #D6B845 #62D645
monochromatic
#3B1D84 #5228B6 #7045D6 #9777E1 #BDA9EC

Accessibility & contrast

On white

5.98
#7045D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#7045D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7045D6
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7045D6#FFFFFF#000000##FFFFFF
##7045D61.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)
#0066DA
Deuteranopia (green-blind)
#0060D3
Tritanopia (blue-blind)
#4F6988
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7045d6;
/* rgb */ color: rgb(112, 69, 214);
/* oklch */ color: oklch(52.3% 0.209 291.0);
Tailwind
colors: {
  custom: {
    50: '#a17ce4',
    500: '#7045d6',
    950: '#000000',
  },
}
SCSS
$custom: #7045d6;
$custom-light: #a17ce4;
$custom-dark: #000000;
JSON
{
  "hex": "#7045d6",
  "rgb": {
    "r": 112,
    "g": 69,
    "b": 214
  },
  "hsl": {
    "h": 257.793,
    "s": 63.877,
    "l": 55.49
  },
  "oklch": {
    "l": 0.52328,
    "c": 0.20934,
    "h": 291
  },
  "luminance": 0.12556
}

Semantic roles & 50–950 ramp

primary
#7045D6
secondary
#C8DA9D
accent
#E741B6
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#100A16
muted
#7F7C84

Preview Lab

Preview with #7045D6

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

Preview Lab → · Contrast checker → · Palette generator →

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