#7045D8#7045D8

#7045D8 is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 52.5% C 0.212 H 290.7°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#7045D8
RGBrgb(112, 69, 216)
HSLhsl(258, 65%, 56%)
HSVhsv(258, 68%, 85%)
CMYKcmyk(48.1%, 68.1%, 0%, 15.3%)
CIE-LABlab(42.24, 52.19, -69.08)
CIE-LCHlch(42.24, 86.58, 307.07°)
OKLaboklab(52.49% 0.0747 -0.198)
OKLCHoklch(52.49% 0.212 290.7)
XYZxyz(21.2014, 12.6580, 66.2786)
Luminance0.1266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7045D8 #ADD845
analogous
#4563D8 #7045D8 #B945D8
triadic
#7045D8 #D87045 #45D870
tetradic
#7045D8 #D84563 #ADD845 #45D8B9
square
#7045D8 #D84563 #ADD845 #45D8B9
split-complementary
#7045D8 #D8B945 #63D845
monochromatic
#3B1C86 #5227B9 #7045D8 #9778E3 #BEAAED

Accessibility & contrast

On white

5.95
#7045D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#7045D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7045D8
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7045D8#FFFFFF#000000##FFFFFF
##7045D81.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066DC
Deuteranopia (green-blind)
#0060D5
Tritanopia (blue-blind)
#4E6A89
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7045d8;
/* rgb */ color: rgb(112, 69, 216);
/* oklch */ color: oklch(52.5% 0.212 290.7);
Tailwind
colors: {
  custom: {
    50: '#a27ce5',
    500: '#7045d8',
    950: '#000000',
  },
}
SCSS
$custom: #7045d8;
$custom-light: #a27ce5;
$custom-dark: #000000;
JSON
{
  "hex": "#7045d8",
  "rgb": {
    "r": 112,
    "g": 69,
    "b": 216
  },
  "hsl": {
    "h": 257.551,
    "s": 65.333,
    "l": 55.882
  },
  "oklch": {
    "l": 0.5249,
    "c": 0.21167,
    "h": 290.7
  },
  "luminance": 0.12659
}

Semantic roles & 50–950 ramp

primary
#7045D8
secondary
#C9DB9E
accent
#E840B7
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#100A16
muted
#7F7C84

Preview Lab

Preview with #7045D8

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

Preview Lab → · Contrast checker → · Palette generator →

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