#7045BC#7045BC

#7045BC is a mid, vivid violet. Relative luminance 0.113; OKLCH L 50.3% C 0.178 H 296.0°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#7045BC
RGBrgb(112, 69, 188)
HSLhsl(262, 47%, 50%)
HSVhsv(262, 63%, 74%)
CMYKcmyk(40.4%, 63.3%, 0%, 26.3%)
CIE-LABlab(40.13, 44.56, -56.29)
CIE-LCHlch(40.13, 71.79, 308.37°)
OKLaboklab(50.31% 0.0782 -0.1604)
OKLCHoklch(50.31% 0.178 296)
XYZxyz(17.8849, 11.3315, 48.8121)
Luminance0.1133 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7045BC #91BC45
analogous
#4555BC #7045BC #AC45BC
triadic
#7045BC #BC7045 #45BC70
tetradic
#7045BC #BC4555 #91BC45 #45BCAC
square
#7045BC #BC4555 #91BC45 #45BCAC
split-complementary
#7045BC #BCAC45 #55BC45
monochromatic
#3B2463 #553490 #7045BC #9372CC #B59FDC

Accessibility & contrast

On white

6.43
#7045BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#7045BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7045BC
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7045BC#FFFFFF#000000##FFFFFF
##7045BC1.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC0
Deuteranopia (green-blind)
#005DB9
Tritanopia (blue-blind)
#5D607A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7045bc;
/* rgb */ color: rgb(112, 69, 188);
/* oklch */ color: oklch(50.3% 0.178 296.0);
Tailwind
colors: {
  custom: {
    50: '#9e7bd1',
    500: '#7045bc',
    950: '#000000',
  },
}
SCSS
$custom: #7045bc;
$custom-light: #9e7bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#7045bc",
  "rgb": {
    "r": 112,
    "g": 69,
    "b": 188
  },
  "hsl": {
    "h": 261.681,
    "s": 47.036,
    "l": 50.392
  },
  "oklch": {
    "l": 0.50309,
    "c": 0.17846,
    "h": 296
  },
  "luminance": 0.11332
}

Semantic roles & 50–950 ramp

primary
#7045BC
secondary
#B6C994
accent
#D751A6
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#0F0914
muted
#7F7B82

Preview Lab

Preview with #7045BC

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

Preview Lab → · Contrast checker → · Palette generator →

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