#6040DE#6040DE

#6040DE is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 50.9% C 0.225 H 284.3°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#6040DE
RGBrgb(96, 64, 222)
HSLhsl(252, 71%, 56%)
HSVhsv(252, 71%, 87%)
CMYKcmyk(56.8%, 71.2%, 0%, 12.9%)
CIE-LABlab(40.29, 53.96, -75.77)
CIE-LCHlch(40.29, 93.02, 305.46°)
OKLaboklab(50.89% 0.0557 -0.2182)
OKLCHoklch(50.89% 0.225 284.3)
XYZxyz(19.8381, 11.4263, 70.2532)
Luminance0.1143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6040DE #BEDE40
analogous
#406FDE #6040DE #AF40DE
triadic
#6040DE #DE6040 #40DE60
tetradic
#6040DE #DE406F #BEDE40 #40DEAF
square
#6040DE #DE406F #BEDE40 #40DEAF
split-complementary
#6040DE #DEAF40 #6FDE40
monochromatic
#2F188B #4121C0 #6040DE #8B74E7 #B7A8F0

Accessibility & contrast

On white

6.39
#6040DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#6040DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6040DE
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6040DE#FFFFFF#000000##FFFFFF
##6040DE1.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)
#0064E3
Deuteranopia (green-blind)
#005ADB
Tritanopia (blue-blind)
#1D6B8B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6040de;
/* rgb */ color: rgb(96, 64, 222);
/* oklch */ color: oklch(50.9% 0.225 284.3);
Tailwind
colors: {
  custom: {
    50: '#9a78ea',
    500: '#6040de',
    950: '#000000',
  },
}
SCSS
$custom: #6040de;
$custom-light: #9a78ea;
$custom-dark: #000000;
JSON
{
  "hex": "#6040de",
  "rgb": {
    "r": 96,
    "g": 64,
    "b": 222
  },
  "hsl": {
    "h": 252.152,
    "s": 70.536,
    "l": 56.078
  },
  "oklch": {
    "l": 0.50888,
    "c": 0.22516,
    "h": 284.3
  },
  "luminance": 0.11428
}

Semantic roles & 50–950 ramp

primary
#6040DE
secondary
#D0DE9C
accent
#ED3AC9
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6040DE

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

Preview Lab → · Contrast checker → · Palette generator →

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