#6040D0#6040D0

#6040D0 is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 49.7% C 0.209 H 286.2°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#6040D0
RGBrgb(96, 64, 208)
HSLhsl(253, 61%, 53%)
HSVhsv(253, 69%, 82%)
CMYKcmyk(53.8%, 69.2%, 0%, 18.4%)
CIE-LABlab(39.08, 49.92, -69.71)
CIE-LCHlch(39.08, 85.74, 305.61°)
OKLaboklab(49.66% 0.0584 -0.2004)
OKLCHoklch(49.66% 0.209 286.2)
XYZxyz(18.0390, 10.7067, 60.7784)
Luminance0.1071 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6040D0 #B0D040
analogous
#4068D0 #6040D0 #A840D0
triadic
#6040D0 #D06040 #40D060
tetradic
#6040D0 #D04068 #B0D040 #40D0A8
square
#6040D0 #D04068 #B0D040 #40D0A8
split-complementary
#6040D0 #D0A840 #68D040
monochromatic
#321E78 #462AA9 #6040D0 #8971DC #B2A2E8

Accessibility & contrast

On white

6.68
#6040D0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#6040D0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6040D0
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6040D0#FFFFFF#000000##FFFFFF
##6040D01.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D4
Deuteranopia (green-blind)
#0058CD
Tritanopia (blue-blind)
#316683
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6040d0;
/* rgb */ color: rgb(96, 64, 208);
/* oklch */ color: oklch(49.7% 0.209 286.2);
Tailwind
colors: {
  custom: {
    50: '#9877df',
    500: '#6040d0',
    950: '#000000',
  },
}
SCSS
$custom: #6040d0;
$custom-light: #9877df;
$custom-dark: #000000;
JSON
{
  "hex": "#6040d0",
  "rgb": {
    "r": 96,
    "g": 64,
    "b": 208
  },
  "hsl": {
    "h": 253.333,
    "s": 60.504,
    "l": 53.333
  },
  "oklch": {
    "l": 0.49658,
    "c": 0.20871,
    "h": 286.2
  },
  "luminance": 0.10708
}

Semantic roles & 50–950 ramp

primary
#6040D0
secondary
#C7D597
accent
#E444C0
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6040D0

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

Preview Lab → · Contrast checker → · Palette generator →

#6040D0 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva