#6140CB#6140CB

#6140CB is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 49.3% C 0.203 H 287.4°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#6140CB
RGBrgb(97, 64, 203)
HSLhsl(254, 57%, 52%)
HSVhsv(254, 68%, 80%)
CMYKcmyk(52.2%, 68.5%, 0%, 20.4%)
CIE-LABlab(38.76, 48.63, -67.34)
CIE-LCHlch(38.76, 83.06, 305.84°)
OKLaboklab(49.32% 0.0606 -0.1934)
OKLCHoklch(49.32% 0.203 287.4)
XYZxyz(17.5395, 10.5191, 57.5945)
Luminance0.1052 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6140CB #AACB40
analogous
#4064CB #6140CB #A740CB
triadic
#6140CB #CB6140 #40CB61
tetradic
#6140CB #CB4064 #AACB40 #40CBA7
square
#6140CB #CB4064 #AACB40 #40CBA7
split-complementary
#6140CB #CBA740 #64CB40
monochromatic
#331F72 #482CA2 #6140CB #8970D8 #B1A0E5

Accessibility & contrast

On white

6.77
#6140CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#6140CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6140CB
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6140CB#FFFFFF#000000##FFFFFF
##6140CB1.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCF
Deuteranopia (green-blind)
#0057C8
Tritanopia (blue-blind)
#386480
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #6140cb;
/* rgb */ color: rgb(97, 64, 203);
/* oklch */ color: oklch(49.3% 0.203 287.4);
Tailwind
colors: {
  custom: {
    50: '#9877dc',
    500: '#6140cb',
    950: '#000000',
  },
}
SCSS
$custom: #6140cb;
$custom-light: #9877dc;
$custom-dark: #000000;
JSON
{
  "hex": "#6140cb",
  "rgb": {
    "r": 97,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 254.245,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.4932,
    "c": 0.20267,
    "h": 287.4
  },
  "luminance": 0.1052
}

Semantic roles & 50–950 ramp

primary
#6140CB
secondary
#C3D295
accent
#E047BC
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #6140CB

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

Preview Lab → · Contrast checker → · Palette generator →

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