#6045D7#6045D7

#6045D7 is a mid, highly saturated violet. Relative luminance 0.116; OKLCH L 51.0% C 0.211 H 284.5°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#6045D7
RGBrgb(96, 69, 215)
HSLhsl(251, 65%, 56%)
HSVhsv(251, 68%, 84%)
CMYKcmyk(55.3%, 67.9%, 0%, 15.7%)
CIE-LABlab(40.65, 49.26, -71.17)
CIE-LCHlch(40.65, 86.55, 304.69°)
OKLaboklab(50.96% 0.0529 -0.2047)
OKLCHoklch(50.96% 0.211 284.5)
XYZxyz(19.2140, 11.6482, 65.5127)
Luminance0.1165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6045D7 #BCD745
analogous
#4573D7 #6045D7 #A945D7
triadic
#6045D7 #D76045 #45D760
tetradic
#6045D7 #D74573 #BCD745 #45D7A9
square
#6045D7 #D74573 #BCD745 #45D7A9
split-complementary
#6045D7 #D7A945 #73D745
monochromatic
#301D85 #4227B7 #6045D7 #8B77E2 #B6AAED

Accessibility & contrast

On white

6.31
#6045D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#6045D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6045D7
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6045D7#FFFFFF#000000##FFFFFF
##6045D71.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064DB
Deuteranopia (green-blind)
#005BD4
Tritanopia (blue-blind)
#286B89
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6045d7;
/* rgb */ color: rgb(96, 69, 215);
/* oklch */ color: oklch(51.0% 0.211 284.5);
Tailwind
colors: {
  custom: {
    50: '#987be4',
    500: '#6045d7',
    950: '#000000',
  },
}
SCSS
$custom: #6045d7;
$custom-light: #987be4;
$custom-dark: #000000;
JSON
{
  "hex": "#6045d7",
  "rgb": {
    "r": 96,
    "g": 69,
    "b": 215
  },
  "hsl": {
    "h": 251.096,
    "s": 64.602,
    "l": 55.686
  },
  "oklch": {
    "l": 0.50963,
    "c": 0.21142,
    "h": 284.5
  },
  "luminance": 0.11649
}

Semantic roles & 50–950 ramp

primary
#6045D7
secondary
#CFDA9E
accent
#E840C9
background
#FAF7FE
surface
#F3EEFC
border
#CDC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6045D7

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

Preview Lab → · Contrast checker → · Palette generator →

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