#7045BD#7045BD

#7045BD is a mid, vivid violet. Relative luminance 0.114; OKLCH L 50.4% C 0.180 H 295.8°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#7045BD
RGBrgb(112, 69, 189)
HSLhsl(262, 48%, 51%)
HSVhsv(262, 63%, 74%)
CMYKcmyk(40.7%, 63.5%, 0%, 25.9%)
CIE-LABlab(40.20, 44.83, -56.76)
CIE-LCHlch(40.20, 72.33, 308.31°)
OKLaboklab(50.38% 0.0781 -0.1618)
OKLCHoklch(50.38% 0.18 295.8)
XYZxyz(17.9931, 11.3747, 49.3818)
Luminance0.1138 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7045BD #92BD45
analogous
#4556BD #7045BD #AC45BD
triadic
#7045BD #BD7045 #45BD70
tetradic
#7045BD #BD4556 #92BD45 #45BDAC
square
#7045BD #BD4556 #92BD45 #45BDAC
split-complementary
#7045BD #BDAC45 #56BD45
monochromatic
#3B2464 #553491 #7045BD #9372CD #B59FDD

Accessibility & contrast

On white

6.41
#7045BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#7045BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7045BD
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7045BD#FFFFFF#000000##FFFFFF
##7045BD1.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C1
Deuteranopia (green-blind)
#005DBA
Tritanopia (blue-blind)
#5C607B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7045bd;
/* rgb */ color: rgb(112, 69, 189);
/* oklch */ color: oklch(50.4% 0.180 295.8);
Tailwind
colors: {
  custom: {
    50: '#9f7bd2',
    500: '#7045bd',
    950: '#000000',
  },
}
SCSS
$custom: #7045bd;
$custom-light: #9f7bd2;
$custom-dark: #000000;
JSON
{
  "hex": "#7045bd",
  "rgb": {
    "r": 112,
    "g": 69,
    "b": 189
  },
  "hsl": {
    "h": 261.5,
    "s": 47.619,
    "l": 50.588
  },
  "oklch": {
    "l": 0.50383,
    "c": 0.17967,
    "h": 295.8
  },
  "luminance": 0.11375
}

Semantic roles & 50–950 ramp

primary
#7045BD
secondary
#B6CA94
accent
#D751A7
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#0F0914
muted
#7F7B83

Preview Lab

Preview with #7045BD

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

Preview Lab → · Contrast checker → · Palette generator →

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