#7045DB#7045DB

#7045DB is a mid, highly saturated violet. Relative luminance 0.128; OKLCH L 52.7% C 0.215 H 290.2°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#7045DB
RGBrgb(112, 69, 219)
HSLhsl(257, 68%, 56%)
HSVhsv(257, 68%, 86%)
CMYKcmyk(48.9%, 68.5%, 0%, 14.1%)
CIE-LABlab(42.48, 53.01, -70.41)
CIE-LCHlch(42.48, 88.13, 306.98°)
OKLaboklab(52.74% 0.0742 -0.2019)
OKLCHoklch(52.74% 0.215 290.2)
XYZxyz(21.5927, 12.8146, 68.3398)
Luminance0.1281 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7045DB #B0DB45
analogous
#4565DB #7045DB #BB45DB
triadic
#7045DB #DB7045 #45DB70
tetradic
#7045DB #DB4565 #B0DB45 #45DBBB
square
#7045DB #DB4565 #B0DB45 #45DBBB
split-complementary
#7045DB #DBBB45 #65DB45
monochromatic
#3B1B8B #5125BE #7045DB #9778E5 #BFACEF

Accessibility & contrast

On white

5.89
#7045DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#7045DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7045DB
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7045DB#FFFFFF#000000##FFFFFF
##7045DB1.005.893.565.89
#FFFFFF5.891.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067E0
Deuteranopia (green-blind)
#0061D8
Tritanopia (blue-blind)
#4C6B8B
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7045db;
/* rgb */ color: rgb(112, 69, 219);
/* oklch */ color: oklch(52.7% 0.215 290.2);
Tailwind
colors: {
  custom: {
    50: '#a27ce7',
    500: '#7045db',
    950: '#000000',
  },
}
SCSS
$custom: #7045db;
$custom-light: #a27ce7;
$custom-dark: #000000;
JSON
{
  "hex": "#7045db",
  "rgb": {
    "r": 112,
    "g": 69,
    "b": 219
  },
  "hsl": {
    "h": 257.2,
    "s": 67.568,
    "l": 56.471
  },
  "oklch": {
    "l": 0.52735,
    "c": 0.21514,
    "h": 290.2
  },
  "luminance": 0.12815
}

Semantic roles & 50–950 ramp

primary
#7045DB
secondary
#CBDD9F
accent
#EA3DB9
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100A16
muted
#7F7C84

Preview Lab

Preview with #7045DB

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

Preview Lab → · Contrast checker → · Palette generator →

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