#6045CD#6045CD

#6045CD is a mid, vivid violet. Relative luminance 0.112; OKLCH L 50.1% C 0.199 H 285.8°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#6045CD
RGBrgb(96, 69, 205)
HSLhsl(252, 58%, 54%)
HSVhsv(252, 66%, 80%)
CMYKcmyk(53.2%, 66.3%, 0%, 19.6%)
CIE-LABlab(39.83, 46.31, -66.75)
CIE-LCHlch(39.83, 81.24, 304.75°)
OKLaboklab(50.12% 0.0544 -0.1917)
OKLCHoklch(50.12% 0.199 285.8)
XYZxyz(17.9681, 11.1499, 58.9511)
Luminance0.1115 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6045CD #B2CD45
analogous
#456ECD #6045CD #A445CD
triadic
#6045CD #CD6045 #45CD60
tetradic
#6045CD #CD456E #B2CD45 #45CDA4
square
#6045CD #CD456E #B2CD45 #45CDA4
split-complementary
#6045CD #CDA445 #6ECD45
monochromatic
#312077 #452DA8 #6045CD #8975DA #B2A5E7

Accessibility & contrast

On white

6.50
#6045CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#6045CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6045CD
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6045CD#FFFFFF#000000##FFFFFF
##6045CD1.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D1
Deuteranopia (green-blind)
#005ACA
Tritanopia (blue-blind)
#336783
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6045cd;
/* rgb */ color: rgb(96, 69, 205);
/* oklch */ color: oklch(50.1% 0.199 285.8);
Tailwind
colors: {
  custom: {
    50: '#977add',
    500: '#6045cd',
    950: '#000000',
  },
}
SCSS
$custom: #6045cd;
$custom-light: #977add;
$custom-dark: #000000;
JSON
{
  "hex": "#6045cd",
  "rgb": {
    "r": 96,
    "g": 69,
    "b": 205
  },
  "hsl": {
    "h": 251.912,
    "s": 57.627,
    "l": 53.725
  },
  "oklch": {
    "l": 0.50119,
    "c": 0.19927,
    "h": 285.8
  },
  "luminance": 0.11151
}

Semantic roles & 50–950 ramp

primary
#6045CD
secondary
#C8D49A
accent
#E147C2
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #6045CD

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

Preview Lab → · Contrast checker → · Palette generator →

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