#6140CA#6140CA

#6140CA is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 49.2% C 0.201 H 287.6°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#6140CA
RGBrgb(97, 64, 202)
HSLhsl(254, 57%, 52%)
HSVhsv(254, 68%, 79%)
CMYKcmyk(52%, 68.3%, 0%, 20.8%)
CIE-LABlab(38.68, 48.35, -66.89)
CIE-LCHlch(38.68, 82.53, 305.86°)
OKLaboklab(49.24% 0.0608 -0.1921)
OKLCHoklch(49.24% 0.201 287.6)
XYZxyz(17.4207, 10.4716, 56.9690)
Luminance0.1047 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6140CA #A9CA40
analogous
#4064CA #6140CA #A640CA
triadic
#6140CA #CA6140 #40CA61
tetradic
#6140CA #CA4064 #A9CA40 #40CAA6
square
#6140CA #CA4064 #A9CA40 #40CAA6
split-complementary
#6140CA #CAA640 #64CA40
monochromatic
#331F70 #482CA0 #6140CA #8970D7 #B0A0E5

Accessibility & contrast

On white

6.79
#6140CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#6140CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6140CA
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6140CA#FFFFFF#000000##FFFFFF
##6140CA1.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6140ca;
/* rgb */ color: rgb(97, 64, 202);
/* oklch */ color: oklch(49.2% 0.201 287.6);
Tailwind
colors: {
  custom: {
    50: '#9777db',
    500: '#6140ca',
    950: '#000000',
  },
}
SCSS
$custom: #6140ca;
$custom-light: #9777db;
$custom-dark: #000000;
JSON
{
  "hex": "#6140ca",
  "rgb": {
    "r": 97,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 254.348,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.49235,
    "c": 0.20148,
    "h": 287.6
  },
  "luminance": 0.10472
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6140CA

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

Preview Lab → · Contrast checker → · Palette generator →

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