#6140CE#6140CE

#6140CE is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 49.6% C 0.206 H 286.9°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#6140CE
RGBrgb(97, 64, 206)
HSLhsl(254, 59%, 53%)
HSVhsv(254, 69%, 81%)
CMYKcmyk(52.9%, 68.9%, 0%, 19.2%)
CIE-LABlab(39.01, 49.50, -68.67)
CIE-LCHlch(39.01, 84.65, 305.79°)
OKLaboklab(49.58% 0.0601 -0.1973)
OKLCHoklch(49.58% 0.206 286.9)
XYZxyz(17.9004, 10.6635, 59.4956)
Luminance0.1066 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6140CE #ADCE40
analogous
#4066CE #6140CE #A840CE
triadic
#6140CE #CE6140 #40CE61
tetradic
#6140CE #CE4066 #ADCE40 #40CEA8
square
#6140CE #CE4066 #ADCE40 #40CEA8
split-complementary
#6140CE #CEA840 #66CE40
monochromatic
#321E75 #472BA6 #6140CE #8971DA #B2A1E7

Accessibility & contrast

On white

6.70
#6140CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#6140CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6140CE
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6140CE#FFFFFF#000000##FFFFFF
##6140CE1.006.703.136.70
#FFFFFF6.701.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD2
Deuteranopia (green-blind)
#0058CB
Tritanopia (blue-blind)
#356582
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6140ce;
/* rgb */ color: rgb(97, 64, 206);
/* oklch */ color: oklch(49.6% 0.206 286.9);
Tailwind
colors: {
  custom: {
    50: '#9877de',
    500: '#6140ce',
    950: '#000000',
  },
}
SCSS
$custom: #6140ce;
$custom-light: #9877de;
$custom-dark: #000000;
JSON
{
  "hex": "#6140ce",
  "rgb": {
    "r": 97,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 253.944,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.49576,
    "c": 0.20626,
    "h": 286.9
  },
  "luminance": 0.10664
}

Semantic roles & 50–950 ramp

primary
#6140CE
secondary
#C5D496
accent
#E245BE
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6140CE

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

Preview Lab → · Contrast checker → · Palette generator →

#6140CE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva