#6045BD#6045BD

#6045BD is a mid, vivid violet. Relative luminance 0.104; OKLCH L 48.8% C 0.179 H 288.3°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#6045BD
RGBrgb(96, 69, 189)
HSLhsl(254, 48%, 51%)
HSVhsv(254, 63%, 74%)
CMYKcmyk(49.2%, 63.5%, 0%, 25.9%)
CIE-LABlab(38.58, 41.59, -59.47)
CIE-LCHlch(38.58, 72.57, 304.97°)
OKLaboklab(48.82% 0.0562 -0.1703)
OKLCHoklch(48.82% 0.179 288.3)
XYZxyz(16.1346, 10.4165, 49.2947)
Luminance0.1042 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6045BD #A2BD45
analogous
#4566BD #6045BD #9C45BD
triadic
#6045BD #BD6045 #45BD60
tetradic
#6045BD #BD4566 #A2BD45 #45BD9C
square
#6045BD #BD4566 #A2BD45 #45BD9C
split-complementary
#6045BD #BD9C45 #66BD45
monochromatic
#322464 #493491 #6045BD #8772CD #AD9FDD

Accessibility & contrast

On white

6.81
#6045BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#6045BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6045BD
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6045BD#FFFFFF#000000##FFFFFF
##6045BD1.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC1
Deuteranopia (green-blind)
#0058BB
Tritanopia (blue-blind)
#40627B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #6045bd;
/* rgb */ color: rgb(96, 69, 189);
/* oklch */ color: oklch(48.8% 0.179 288.3);
Tailwind
colors: {
  custom: {
    50: '#957ad2',
    500: '#6045bd',
    950: '#000000',
  },
}
SCSS
$custom: #6045bd;
$custom-light: #957ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#6045bd",
  "rgb": {
    "r": 96,
    "g": 69,
    "b": 189
  },
  "hsl": {
    "h": 253.5,
    "s": 47.619,
    "l": 50.588
  },
  "oklch": {
    "l": 0.48822,
    "c": 0.17934,
    "h": 288.3
  },
  "luminance": 0.10417
}

Semantic roles & 50–950 ramp

primary
#6045BD
secondary
#BECA94
accent
#D751B9
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #6045BD

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

Preview Lab → · Contrast checker → · Palette generator →

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