#6040DF#6040DF

#6040DF is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 51.0% C 0.226 H 284.2°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#6040DF
RGBrgb(96, 64, 223)
HSLhsl(252, 71%, 56%)
HSVhsv(252, 71%, 87%)
CMYKcmyk(57%, 71.3%, 0%, 12.5%)
CIE-LABlab(40.38, 54.25, -76.20)
CIE-LCHlch(40.38, 93.54, 305.45°)
OKLaboklab(50.98% 0.0555 -0.2194)
OKLCHoklch(50.98% 0.226 284.2)
XYZxyz(19.9725, 11.4801, 70.9612)
Luminance0.1148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6040DF #BFDF40
analogous
#4070DF #6040DF #AF40DF
triadic
#6040DF #DF6040 #40DF60
tetradic
#6040DF #DF4070 #BFDF40 #40DFAF
square
#6040DF #DF4070 #BFDF40 #40DFAF
split-complementary
#6040DF #DFAF40 #70DF40
monochromatic
#2F188D #4120C1 #6040DF #8C74E8 #B7A9F1

Accessibility & contrast

On white

6.37
#6040DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#6040DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6040DF
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6040DF#FFFFFF#000000##FFFFFF
##6040DF1.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E4
Deuteranopia (green-blind)
#005ADC
Tritanopia (blue-blind)
#1B6B8C
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6040df;
/* rgb */ color: rgb(96, 64, 223);
/* oklch */ color: oklch(51.0% 0.226 284.2);
Tailwind
colors: {
  custom: {
    50: '#9a78ea',
    500: '#6040df',
    950: '#000000',
  },
}
SCSS
$custom: #6040df;
$custom-light: #9a78ea;
$custom-dark: #000000;
JSON
{
  "hex": "#6040df",
  "rgb": {
    "r": 96,
    "g": 64,
    "b": 223
  },
  "hsl": {
    "h": 252.075,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.50978,
    "c": 0.22632,
    "h": 284.2
  },
  "luminance": 0.11481
}

Semantic roles & 50–950 ramp

primary
#6040DF
secondary
#D1DE9D
accent
#EE3ACA
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6040DF

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

Preview Lab → · Contrast checker → · Palette generator →

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