#6041DC#6041DC

#6041DC is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 50.8% C 0.222 H 284.4°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#6041DC
RGBrgb(96, 65, 220)
HSLhsl(252, 69%, 56%)
HSVhsv(252, 70%, 86%)
CMYKcmyk(56.4%, 70.5%, 0%, 13.7%)
CIE-LABlab(40.30, 52.86, -74.61)
CIE-LCHlch(40.30, 91.44, 305.32°)
OKLaboklab(50.84% 0.0553 -0.2148)
OKLCHoklch(50.84% 0.222 284.4)
XYZxyz(19.6285, 11.4335, 68.8689)
Luminance0.1143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6041DC #BDDC41
analogous
#416FDC #6041DC #AD41DC
triadic
#6041DC #DC6041 #41DC60
tetradic
#6041DC #DC416F #BDDC41 #41DCAD
square
#6041DC #DC416F #BDDC41 #41DCAD
split-complementary
#6041DC #DCAD41 #6FDC41
monochromatic
#301989 #4223BD #6041DC #8B75E6 #B6A8EF

Accessibility & contrast

On white

6.39
#6041DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#6041DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6041DC
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6041DC#FFFFFF#000000##FFFFFF
##6041DC1.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E1
Deuteranopia (green-blind)
#005AD9
Tritanopia (blue-blind)
#216B8A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6041dc;
/* rgb */ color: rgb(96, 65, 220);
/* oklch */ color: oklch(50.8% 0.222 284.4);
Tailwind
colors: {
  custom: {
    50: '#9978e8',
    500: '#6041dc',
    950: '#000000',
  },
}
SCSS
$custom: #6041dc;
$custom-light: #9978e8;
$custom-dark: #000000;
JSON
{
  "hex": "#6041dc",
  "rgb": {
    "r": 96,
    "g": 65,
    "b": 220
  },
  "hsl": {
    "h": 252,
    "s": 68.889,
    "l": 55.882
  },
  "oklch": {
    "l": 0.50843,
    "c": 0.22177,
    "h": 284.4
  },
  "luminance": 0.11435
}

Semantic roles & 50–950 ramp

primary
#6041DC
secondary
#D0DD9C
accent
#EC3CC9
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6041DC

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

Preview Lab → · Contrast checker → · Palette generator →

#6041DC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva