#6045CF#6045CF

#6045CF is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 50.3% C 0.202 H 285.6°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#6045CF
RGBrgb(96, 69, 207)
HSLhsl(252, 59%, 54%)
HSVhsv(252, 67%, 81%)
CMYKcmyk(53.6%, 66.7%, 0%, 18.8%)
CIE-LABlab(39.99, 46.90, -67.64)
CIE-LCHlch(39.99, 82.31, 304.74°)
OKLaboklab(50.29% 0.0541 -0.1943)
OKLCHoklch(50.29% 0.202 285.6)
XYZxyz(18.2111, 11.2470, 60.2307)
Luminance0.1125 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6045CF #B4CF45
analogous
#456FCF #6045CF #A545CF
triadic
#6045CF #CF6045 #45CF60
tetradic
#6045CF #CF456F #B4CF45 #45CFA5
square
#6045CF #CF456F #B4CF45 #45CFA5
split-complementary
#6045CF #CFA545 #6FCF45
monochromatic
#31207A #452CAB #6045CF #8A76DC #B3A6E8

Accessibility & contrast

On white

6.46
#6045CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#6045CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6045CF
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6045CF#FFFFFF#000000##FFFFFF
##6045CF1.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D3
Deuteranopia (green-blind)
#005ACC
Tritanopia (blue-blind)
#316884
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6045cf;
/* rgb */ color: rgb(96, 69, 207);
/* oklch */ color: oklch(50.3% 0.202 285.6);
Tailwind
colors: {
  custom: {
    50: '#977bdf',
    500: '#6045cf',
    950: '#000000',
  },
}
SCSS
$custom: #6045cf;
$custom-light: #977bdf;
$custom-dark: #000000;
JSON
{
  "hex": "#6045cf",
  "rgb": {
    "r": 96,
    "g": 69,
    "b": 207
  },
  "hsl": {
    "h": 251.739,
    "s": 58.974,
    "l": 54.118
  },
  "oklch": {
    "l": 0.50286,
    "c": 0.20172,
    "h": 285.6
  },
  "luminance": 0.11248
}

Semantic roles & 50–950 ramp

primary
#6045CF
secondary
#CAD59B
accent
#E246C4
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #6045CF

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

Preview Lab → · Contrast checker → · Palette generator →

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