#6140CF#6140CF

#6140CF is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 49.7% C 0.207 H 286.8°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#6140CF
RGBrgb(97, 64, 207)
HSLhsl(254, 60%, 53%)
HSVhsv(254, 69%, 81%)
CMYKcmyk(53.1%, 69.1%, 0%, 18.8%)
CIE-LABlab(39.09, 49.79, -69.11)
CIE-LCHlch(39.09, 85.17, 305.77°)
OKLaboklab(49.66% 0.0599 -0.1986)
OKLCHoklch(49.66% 0.207 286.8)
XYZxyz(18.0223, 10.7122, 60.1374)
Luminance0.1071 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6140CF #AECF40
analogous
#4066CF #6140CF #A840CF
triadic
#6140CF #CF6140 #40CF61
tetradic
#6140CF #CF4066 #AECF40 #40CFA8
square
#6140CF #CF4066 #AECF40 #40CFA8
split-complementary
#6140CF #CFA840 #66CF40
monochromatic
#321E77 #472AA8 #6140CF #8971DB #B2A2E8

Accessibility & contrast

On white

6.68
#6140CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#6140CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6140CF
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6140CF#FFFFFF#000000##FFFFFF
##6140CF1.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D3
Deuteranopia (green-blind)
#0058CC
Tritanopia (blue-blind)
#346583
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6140cf;
/* rgb */ color: rgb(97, 64, 207);
/* oklch */ color: oklch(49.7% 0.207 286.8);
Tailwind
colors: {
  custom: {
    50: '#9877df',
    500: '#6140cf',
    950: '#000000',
  },
}
SCSS
$custom: #6140cf;
$custom-light: #9877df;
$custom-dark: #000000;
JSON
{
  "hex": "#6140cf",
  "rgb": {
    "r": 97,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 253.846,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.49661,
    "c": 0.20744,
    "h": 286.8
  },
  "luminance": 0.10713
}

Semantic roles & 50–950 ramp

primary
#6140CF
secondary
#C6D497
accent
#E345BE
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6140CF

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

Preview Lab → · Contrast checker → · Palette generator →

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