#7045C4#7045C4

#7045C4 is a mid, vivid violet. Relative luminance 0.117; OKLCH L 50.9% C 0.188 H 294.3°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#7045C4
RGBrgb(112, 69, 196)
HSLhsl(260, 52%, 52%)
HSVhsv(260, 65%, 77%)
CMYKcmyk(42.9%, 64.8%, 0%, 23.1%)
CIE-LABlab(40.71, 46.72, -60.02)
CIE-LCHlch(40.71, 76.06, 307.90°)
OKLaboklab(50.91% 0.0774 -0.1714)
OKLCHoklch(50.91% 0.188 294.3)
XYZxyz(18.7713, 11.6860, 53.4805)
Luminance0.1169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7045C4 #99C445
analogous
#455AC4 #7045C4 #B045C4
triadic
#7045C4 #C47045 #45C470
tetradic
#7045C4 #C4455A #99C445 #45C4B0
square
#7045C4 #C4455A #99C445 #45C4B0
split-complementary
#7045C4 #C4B045 #5AC445
monochromatic
#3B226C #55319B #7045C4 #9473D3 #B7A2E1

Accessibility & contrast

On white

6.29
#7045C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#7045C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7045C4
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7045C4#FFFFFF#000000##FFFFFF
##7045C41.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C8
Deuteranopia (green-blind)
#005EC1
Tritanopia (blue-blind)
#59637E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7045c4;
/* rgb */ color: rgb(112, 69, 196);
/* oklch */ color: oklch(50.9% 0.188 294.3);
Tailwind
colors: {
  custom: {
    50: '#9f7bd7',
    500: '#7045c4',
    950: '#000000',
  },
}
SCSS
$custom: #7045c4;
$custom-light: #9f7bd7;
$custom-dark: #000000;
JSON
{
  "hex": "#7045c4",
  "rgb": {
    "r": 112,
    "g": 69,
    "b": 196
  },
  "hsl": {
    "h": 260.315,
    "s": 51.837,
    "l": 51.961
  },
  "oklch": {
    "l": 0.50911,
    "c": 0.18808,
    "h": 294.3
  },
  "luminance": 0.11687
}

Semantic roles & 50–950 ramp

primary
#7045C4
secondary
#BBCE97
accent
#DB4DAB
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#0F0914
muted
#7F7B83

Preview Lab

Preview with #7045C4

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

Preview Lab → · Contrast checker → · Palette generator →

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