#7045BF#7045BF

#7045BF is a mid, vivid violet. Relative luminance 0.115; OKLCH L 50.5% C 0.182 H 295.3°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#7045BF
RGBrgb(112, 69, 191)
HSLhsl(261, 49%, 51%)
HSVhsv(261, 64%, 75%)
CMYKcmyk(41.4%, 63.9%, 0%, 25.1%)
CIE-LABlab(40.35, 45.37, -57.69)
CIE-LCHlch(40.35, 73.40, 308.18°)
OKLaboklab(50.53% 0.0779 -0.1646)
OKLCHoklch(50.53% 0.182 295.3)
XYZxyz(18.2117, 11.4622, 50.5330)
Luminance0.1146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7045BF #94BF45
analogous
#4557BF #7045BF #AD45BF
triadic
#7045BF #BF7045 #45BF70
tetradic
#7045BF #BF4557 #94BF45 #45BFAD
square
#7045BF #BF4557 #94BF45 #45BFAD
split-complementary
#7045BF #BFAD45 #57BF45
monochromatic
#3B2366 #553394 #7045BF #9373CF #B6A0DE

Accessibility & contrast

On white

6.38
#7045BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#7045BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7045BF
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7045BF#FFFFFF#000000##FFFFFF
##7045BF1.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C3
Deuteranopia (green-blind)
#005DBC
Tritanopia (blue-blind)
#5B617C
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7045bf;
/* rgb */ color: rgb(112, 69, 191);
/* oklch */ color: oklch(50.5% 0.182 295.3);
Tailwind
colors: {
  custom: {
    50: '#9f7bd3',
    500: '#7045bf',
    950: '#000000',
  },
}
SCSS
$custom: #7045bf;
$custom-light: #9f7bd3;
$custom-dark: #000000;
JSON
{
  "hex": "#7045bf",
  "rgb": {
    "r": 112,
    "g": 69,
    "b": 191
  },
  "hsl": {
    "h": 261.148,
    "s": 48.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.50533,
    "c": 0.18209,
    "h": 295.3
  },
  "luminance": 0.11463
}

Semantic roles & 50–950 ramp

primary
#7045BF
secondary
#B8CB95
accent
#D84FA8
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#0F0914
muted
#7F7B83

Preview Lab

Preview with #7045BF

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

Preview Lab → · Contrast checker → · Palette generator →

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