#6040CA#6040CA

#6040CA is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.1% C 0.202 H 287.1°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#6040CA
RGBrgb(96, 64, 202)
HSLhsl(254, 57%, 52%)
HSVhsv(254, 68%, 79%)
CMYKcmyk(52.5%, 68.3%, 0%, 20.8%)
CIE-LABlab(38.58, 48.18, -67.05)
CIE-LCHlch(38.58, 82.57, 305.70°)
OKLaboklab(49.14% 0.0594 -0.1926)
OKLCHoklch(49.14% 0.202 287.1)
XYZxyz(17.3148, 10.4170, 56.9640)
Luminance0.1042 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6040CA #AACA40
analogous
#4065CA #6040CA #A540CA
triadic
#6040CA #CA6040 #40CA60
tetradic
#6040CA #CA4065 #AACA40 #40CAA5
square
#6040CA #CA4065 #AACA40 #40CAA5
split-complementary
#6040CA #CAA540 #65CA40
monochromatic
#321F70 #472CA0 #6040CA #8870D7 #B0A0E5

Accessibility & contrast

On white

6.81
#6040CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#6040CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6040CA
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6040CA#FFFFFF#000000##FFFFFF
##6040CA1.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECE
Deuteranopia (green-blind)
#0057C7
Tritanopia (blue-blind)
#366380
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #6040ca;
/* rgb */ color: rgb(96, 64, 202);
/* oklch */ color: oklch(49.1% 0.202 287.1);
Tailwind
colors: {
  custom: {
    50: '#9777db',
    500: '#6040ca',
    950: '#000000',
  },
}
SCSS
$custom: #6040ca;
$custom-light: #9777db;
$custom-dark: #000000;
JSON
{
  "hex": "#6040ca",
  "rgb": {
    "r": 96,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 253.913,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.49144,
    "c": 0.20154,
    "h": 287.1
  },
  "luminance": 0.10418
}

Semantic roles & 50–950 ramp

primary
#6040CA
secondary
#C3D195
accent
#E048BD
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #6040CA

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

Preview Lab → · Contrast checker → · Palette generator →

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