#6045CB#6045CB

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

Color values

HEX#6045CB
RGBrgb(96, 69, 203)
HSLhsl(252, 56%, 53%)
HSVhsv(252, 66%, 80%)
CMYKcmyk(52.7%, 66%, 0%, 20.4%)
CIE-LABlab(39.67, 45.72, -65.85)
CIE-LCHlch(39.67, 80.16, 304.77°)
OKLaboklab(49.95% 0.0546 -0.1891)
OKLCHoklch(49.95% 0.197 286.1)
XYZxyz(17.7283, 11.0539, 57.6878)
Luminance0.1105 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6045CB #B0CB45
analogous
#456DCB #6045CB #A345CB
triadic
#6045CB #CB6045 #45CB60
tetradic
#6045CB #CB456D #B0CB45 #45CBA3
square
#6045CB #CB456D #B0CB45 #45CBA3
split-complementary
#6045CB #CBA345 #6DCB45
monochromatic
#322175 #462EA5 #6045CB #8975D8 #B2A5E6

Accessibility & contrast

On white

6.54
#6045CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#6045CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6045CB
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6045CB#FFFFFF#000000##FFFFFF
##6045CB1.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CF
Deuteranopia (green-blind)
#005AC8
Tritanopia (blue-blind)
#356782
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6045cb;
/* rgb */ color: rgb(96, 69, 203);
/* oklch */ color: oklch(50.0% 0.197 286.1);
Tailwind
colors: {
  custom: {
    50: '#977adc',
    500: '#6045cb',
    950: '#000000',
  },
}
SCSS
$custom: #6045cb;
$custom-light: #977adc;
$custom-dark: #000000;
JSON
{
  "hex": "#6045cb",
  "rgb": {
    "r": 96,
    "g": 69,
    "b": 203
  },
  "hsl": {
    "h": 252.09,
    "s": 56.303,
    "l": 53.333
  },
  "oklch": {
    "l": 0.49954,
    "c": 0.19681,
    "h": 286.1
  },
  "luminance": 0.11055
}

Semantic roles & 50–950 ramp

primary
#6045CB
secondary
#C7D399
accent
#E048C1
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #6045CB

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

Preview Lab → · Contrast checker → · Palette generator →

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