#6140CC#6140CC

#6140CC is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 49.4% C 0.204 H 287.2°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#6140CC
RGBrgb(97, 64, 204)
HSLhsl(254, 58%, 53%)
HSVhsv(254, 69%, 80%)
CMYKcmyk(52.5%, 68.6%, 0%, 20%)
CIE-LABlab(38.84, 48.92, -67.78)
CIE-LCHlch(38.84, 83.59, 305.82°)
OKLaboklab(49.41% 0.0604 -0.1947)
OKLCHoklch(49.41% 0.204 287.2)
XYZxyz(17.6590, 10.5669, 58.2242)
Luminance0.1057 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6140CC #ABCC40
analogous
#4065CC #6140CC #A740CC
triadic
#6140CC #CC6140 #40CC61
tetradic
#6140CC #CC4065 #ABCC40 #40CCA7
square
#6140CC #CC4065 #ABCC40 #40CCA7
split-complementary
#6140CC #CCA740 #65CC40
monochromatic
#331F73 #482CA3 #6140CC #8970D9 #B1A1E6

Accessibility & contrast

On white

6.74
#6140CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#6140CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6140CC
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6140CC#FFFFFF#000000##FFFFFF
##6140CC1.006.743.116.74
#FFFFFF6.741.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD0
Deuteranopia (green-blind)
#0058C9
Tritanopia (blue-blind)
#376481
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #6140cc;
/* rgb */ color: rgb(97, 64, 204);
/* oklch */ color: oklch(49.4% 0.204 287.2);
Tailwind
colors: {
  custom: {
    50: '#9877dd',
    500: '#6140cc',
    950: '#000000',
  },
}
SCSS
$custom: #6140cc;
$custom-light: #9877dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6140cc",
  "rgb": {
    "r": 97,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 254.143,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.49405,
    "c": 0.20387,
    "h": 287.2
  },
  "luminance": 0.10568
}

Semantic roles & 50–950 ramp

primary
#6140CC
secondary
#C4D295
accent
#E147BD
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #6140CC

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

Preview Lab → · Contrast checker → · Palette generator →

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