#7045C2#7045C2

#7045C2 is a mid, vivid violet. Relative luminance 0.116; OKLCH L 50.8% C 0.186 H 294.7°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#7045C2
RGBrgb(112, 69, 194)
HSLhsl(261, 51%, 52%)
HSVhsv(261, 64%, 76%)
CMYKcmyk(42.3%, 64.4%, 0%, 23.9%)
CIE-LABlab(40.57, 46.18, -59.09)
CIE-LCHlch(40.57, 75.00, 308.01°)
OKLaboklab(50.76% 0.0776 -0.1687)
OKLCHoklch(50.76% 0.186 294.7)
XYZxyz(18.5452, 11.5956, 52.2895)
Luminance0.1160 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7045C2 #97C245
analogous
#4559C2 #7045C2 #AF45C2
triadic
#7045C2 #C27045 #45C270
tetradic
#7045C2 #C24559 #97C245 #45C2AF
square
#7045C2 #C24559 #97C245 #45C2AF
split-complementary
#7045C2 #C2AF45 #59C245
monochromatic
#3B236A #553298 #7045C2 #9373D1 #B7A1E0

Accessibility & contrast

On white

6.33
#7045C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#7045C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7045C2
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7045C2#FFFFFF#000000##FFFFFF
##7045C21.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C6
Deuteranopia (green-blind)
#005EBF
Tritanopia (blue-blind)
#5A627D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7045c2;
/* rgb */ color: rgb(112, 69, 194);
/* oklch */ color: oklch(50.8% 0.186 294.7);
Tailwind
colors: {
  custom: {
    50: '#9f7bd5',
    500: '#7045c2',
    950: '#000000',
  },
}
SCSS
$custom: #7045c2;
$custom-light: #9f7bd5;
$custom-dark: #000000;
JSON
{
  "hex": "#7045c2",
  "rgb": {
    "r": 112,
    "g": 69,
    "b": 194
  },
  "hsl": {
    "h": 260.64,
    "s": 50.607,
    "l": 51.569
  },
  "oklch": {
    "l": 0.50759,
    "c": 0.18569,
    "h": 294.7
  },
  "luminance": 0.11596
}

Semantic roles & 50–950 ramp

primary
#7045C2
secondary
#BACD96
accent
#DA4EAA
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#0F0914
muted
#7F7B83

Preview Lab

Preview with #7045C2

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

Preview Lab → · Contrast checker → · Palette generator →

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