#6045DC#6045DC

#6045DC is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 51.4% C 0.217 H 283.9°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#6045DC
RGBrgb(96, 69, 220)
HSLhsl(251, 68%, 57%)
HSVhsv(251, 69%, 86%)
CMYKcmyk(56.4%, 68.6%, 0%, 13.7%)
CIE-LABlab(41.07, 50.73, -73.35)
CIE-LCHlch(41.07, 89.18, 304.67°)
OKLaboklab(51.39% 0.0521 -0.2111)
OKLCHoklch(51.39% 0.217 283.9)
XYZxyz(19.8663, 11.9091, 68.9481)
Luminance0.1191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6045DC #C1DC45
analogous
#4576DC #6045DC #AB45DC
triadic
#6045DC #DC6045 #45DC60
tetradic
#6045DC #DC4576 #C1DC45 #45DCAB
square
#6045DC #DC4576 #C1DC45 #45DCAB
split-complementary
#6045DC #DCAB45 #76DC45
monochromatic
#2F1A8C #4024C0 #6045DC #8C79E6 #B8ACEF

Accessibility & contrast

On white

6.21
#6045DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#6045DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6045DC
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6045DC#FFFFFF#000000##FFFFFF
##6045DC1.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E1
Deuteranopia (green-blind)
#005CD9
Tritanopia (blue-blind)
#206D8B
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #6045dc;
/* rgb */ color: rgb(96, 69, 220);
/* oklch */ color: oklch(51.4% 0.217 283.9);
Tailwind
colors: {
  custom: {
    50: '#997be8',
    500: '#6045dc',
    950: '#000000',
  },
}
SCSS
$custom: #6045dc;
$custom-light: #997be8;
$custom-dark: #000000;
JSON
{
  "hex": "#6045dc",
  "rgb": {
    "r": 96,
    "g": 69,
    "b": 220
  },
  "hsl": {
    "h": 250.728,
    "s": 68.326,
    "l": 56.667
  },
  "oklch": {
    "l": 0.51393,
    "c": 0.21742,
    "h": 283.9
  },
  "luminance": 0.1191
}

Semantic roles & 50–950 ramp

primary
#6045DC
secondary
#D2DDA0
accent
#EB3DCC
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6045DC

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

Preview Lab → · Contrast checker → · Palette generator →

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