#6045CC#6045CC

#6045CC is a mid, vivid violet. Relative luminance 0.111; OKLCH L 50.0% C 0.198 H 286.0°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#6045CC
RGBrgb(96, 69, 204)
HSLhsl(252, 57%, 54%)
HSVhsv(252, 66%, 80%)
CMYKcmyk(52.9%, 66.2%, 0%, 20%)
CIE-LABlab(39.75, 46.01, -66.30)
CIE-LCHlch(39.75, 80.70, 304.76°)
OKLaboklab(50.04% 0.0545 -0.1904)
OKLCHoklch(50.04% 0.198 286)
XYZxyz(17.8478, 11.1017, 58.3174)
Luminance0.1110 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6045CC #B1CC45
analogous
#456DCC #6045CC #A345CC
triadic
#6045CC #CC6045 #45CC60
tetradic
#6045CC #CC456D #B1CC45 #45CCA3
square
#6045CC #CC456D #B1CC45 #45CCA3
split-complementary
#6045CC #CCA345 #6DCC45
monochromatic
#322076 #462EA6 #6045CC #8975D9 #B2A5E6

Accessibility & contrast

On white

6.52
#6045CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#6045CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6045CC
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6045CC#FFFFFF#000000##FFFFFF
##6045CC1.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D0
Deuteranopia (green-blind)
#005AC9
Tritanopia (blue-blind)
#346783
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6045cc;
/* rgb */ color: rgb(96, 69, 204);
/* oklch */ color: oklch(50.0% 0.198 286.0);
Tailwind
colors: {
  custom: {
    50: '#977add',
    500: '#6045cc',
    950: '#000000',
  },
}
SCSS
$custom: #6045cc;
$custom-light: #977add;
$custom-dark: #000000;
JSON
{
  "hex": "#6045cc",
  "rgb": {
    "r": 96,
    "g": 69,
    "b": 204
  },
  "hsl": {
    "h": 252,
    "s": 56.962,
    "l": 53.529
  },
  "oklch": {
    "l": 0.50036,
    "c": 0.19804,
    "h": 286
  },
  "luminance": 0.11103
}

Semantic roles & 50–950 ramp

primary
#6045CC
secondary
#C8D399
accent
#E048C2
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #6045CC

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

Preview Lab → · Contrast checker → · Palette generator →

#6045CC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva