#7045CB#7045CB

#7045CB is a mid, vivid violet. Relative luminance 0.120; OKLCH L 51.5% C 0.196 H 292.9°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#7045CB
RGBrgb(112, 69, 203)
HSLhsl(259, 56%, 53%)
HSVhsv(259, 66%, 80%)
CMYKcmyk(44.8%, 66%, 0%, 20.4%)
CIE-LABlab(41.24, 48.63, -63.23)
CIE-LCHlch(41.24, 79.77, 307.56°)
OKLaboklab(51.45% 0.0766 -0.1809)
OKLCHoklch(51.45% 0.196 292.9)
XYZxyz(19.5867, 12.0122, 57.7749)
Luminance0.1201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7045CB #A0CB45
analogous
#455DCB #7045CB #B345CB
triadic
#7045CB #CB7045 #45CB70
tetradic
#7045CB #CB455D #A0CB45 #45CBB3
square
#7045CB #CB455D #A0CB45 #45CBB3
split-complementary
#7045CB #CBB345 #5DCB45
monochromatic
#3C2175 #542EA5 #7045CB #9575D8 #BAA5E6

Accessibility & contrast

On white

6.17
#7045CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#7045CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7045CB
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7045CB#FFFFFF#000000##FFFFFF
##7045CB1.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CF
Deuteranopia (green-blind)
#005FC8
Tritanopia (blue-blind)
#566582
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7045cb;
/* rgb */ color: rgb(112, 69, 203);
/* oklch */ color: oklch(51.5% 0.196 292.9);
Tailwind
colors: {
  custom: {
    50: '#a07bdc',
    500: '#7045cb',
    950: '#000000',
  },
}
SCSS
$custom: #7045cb;
$custom-light: #a07bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#7045cb",
  "rgb": {
    "r": 112,
    "g": 69,
    "b": 203
  },
  "hsl": {
    "h": 259.254,
    "s": 56.303,
    "l": 53.333
  },
  "oklch": {
    "l": 0.51452,
    "c": 0.19641,
    "h": 292.9
  },
  "luminance": 0.12013
}

Semantic roles & 50–950 ramp

primary
#7045CB
secondary
#C0D399
accent
#E048AF
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #7045CB

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

Preview Lab → · Contrast checker → · Palette generator →

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