#7045C5#7045C5

#7045C5 is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.0% C 0.189 H 294.1°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#7045C5
RGBrgb(112, 69, 197)
HSLhsl(260, 52%, 52%)
HSVhsv(260, 65%, 77%)
CMYKcmyk(43.1%, 65%, 0%, 22.7%)
CIE-LABlab(40.79, 47.00, -60.48)
CIE-LCHlch(40.79, 76.59, 307.85°)
OKLaboklab(50.99% 0.0773 -0.1728)
OKLCHoklch(50.99% 0.189 294.1)
XYZxyz(18.8855, 11.7317, 54.0819)
Luminance0.1173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7045C5 #9AC545
analogous
#455AC5 #7045C5 #B045C5
triadic
#7045C5 #C57045 #45C570
tetradic
#7045C5 #C5455A #9AC545 #45C5B0
square
#7045C5 #C5455A #9AC545 #45C5B0
split-complementary
#7045C5 #C5B045 #5AC545
monochromatic
#3B226D #55319C #7045C5 #9474D4 #B8A2E2

Accessibility & contrast

On white

6.28
#7045C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#7045C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7045C5
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7045C5#FFFFFF#000000##FFFFFF
##7045C51.006.283.356.28
#FFFFFF6.281.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C9
Deuteranopia (green-blind)
#005EC2
Tritanopia (blue-blind)
#59637F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7045c5;
/* rgb */ color: rgb(112, 69, 197);
/* oklch */ color: oklch(51.0% 0.189 294.1);
Tailwind
colors: {
  custom: {
    50: '#9f7bd7',
    500: '#7045c5',
    950: '#000000',
  },
}
SCSS
$custom: #7045c5;
$custom-light: #9f7bd7;
$custom-dark: #000000;
JSON
{
  "hex": "#7045c5",
  "rgb": {
    "r": 112,
    "g": 69,
    "b": 197
  },
  "hsl": {
    "h": 260.156,
    "s": 52.459,
    "l": 52.157
  },
  "oklch": {
    "l": 0.50988,
    "c": 0.18928,
    "h": 294.1
  },
  "luminance": 0.11732
}

Semantic roles & 50–950 ramp

primary
#7045C5
secondary
#BCCF97
accent
#DC4CAC
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#0F0914
muted
#7F7B83

Preview Lab

Preview with #7045C5

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

Preview Lab → · Contrast checker → · Palette generator →

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