#6045DB#6045DB

#6045DB is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 51.3% C 0.216 H 284.0°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#6045DB
RGBrgb(96, 69, 219)
HSLhsl(251, 68%, 56%)
HSVhsv(251, 68%, 86%)
CMYKcmyk(56.2%, 68.5%, 0%, 14.1%)
CIE-LABlab(40.99, 50.44, -72.91)
CIE-LCHlch(40.99, 88.66, 304.67°)
OKLaboklab(51.31% 0.0523 -0.2098)
OKLCHoklch(51.31% 0.216 284)
XYZxyz(19.7343, 11.8563, 68.2527)
Luminance0.1186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6045DB #C0DB45
analogous
#4575DB #6045DB #AB45DB
triadic
#6045DB #DB6045 #45DB60
tetradic
#6045DB #DB4575 #C0DB45 #45DBAB
square
#6045DB #DB4575 #C0DB45 #45DBAB
split-complementary
#6045DB #DBAB45 #75DB45
monochromatic
#2F1B8B #4025BE #6045DB #8C78E5 #B8ACEF

Accessibility & contrast

On white

6.23
#6045DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#6045DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6045DB
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6045DB#FFFFFF#000000##FFFFFF
##6045DB1.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E0
Deuteranopia (green-blind)
#005CD8
Tritanopia (blue-blind)
#226C8B
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #6045db;
/* rgb */ color: rgb(96, 69, 219);
/* oklch */ color: oklch(51.3% 0.216 284.0);
Tailwind
colors: {
  custom: {
    50: '#997be7',
    500: '#6045db',
    950: '#000000',
  },
}
SCSS
$custom: #6045db;
$custom-light: #997be7;
$custom-dark: #000000;
JSON
{
  "hex": "#6045db",
  "rgb": {
    "r": 96,
    "g": 69,
    "b": 219
  },
  "hsl": {
    "h": 250.8,
    "s": 67.568,
    "l": 56.471
  },
  "oklch": {
    "l": 0.51306,
    "c": 0.21622,
    "h": 284
  },
  "luminance": 0.11858
}

Semantic roles & 50–950 ramp

primary
#6045DB
secondary
#D2DD9F
accent
#EA3DCB
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6045DB

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

Preview Lab → · Contrast checker → · Palette generator →

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