#6140CD#6140CD

#6140CD is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 49.5% C 0.205 H 287.1°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#6140CD
RGBrgb(97, 64, 205)
HSLhsl(254, 59%, 53%)
HSVhsv(254, 69%, 80%)
CMYKcmyk(52.7%, 68.8%, 0%, 19.6%)
CIE-LABlab(38.92, 49.21, -68.22)
CIE-LCHlch(38.92, 84.12, 305.80°)
OKLaboklab(49.49% 0.0603 -0.196)
OKLCHoklch(49.49% 0.205 287.1)
XYZxyz(17.7793, 10.6151, 58.8578)
Luminance0.1062 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6140CD #ACCD40
analogous
#4065CD #6140CD #A840CD
triadic
#6140CD #CD6140 #40CD61
tetradic
#6140CD #CD4065 #ACCD40 #40CDA8
square
#6140CD #CD4065 #ACCD40 #40CDA8
split-complementary
#6140CD #CDA840 #65CD40
monochromatic
#321E74 #482BA5 #6140CD #8971DA #B1A1E6

Accessibility & contrast

On white

6.72
#6140CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#6140CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6140CD
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6140CD#FFFFFF#000000##FFFFFF
##6140CD1.006.723.126.72
#FFFFFF6.721.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD1
Deuteranopia (green-blind)
#0058CA
Tritanopia (blue-blind)
#366482
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6140cd;
/* rgb */ color: rgb(97, 64, 205);
/* oklch */ color: oklch(49.5% 0.205 287.1);
Tailwind
colors: {
  custom: {
    50: '#9877dd',
    500: '#6140cd',
    950: '#000000',
  },
}
SCSS
$custom: #6140cd;
$custom-light: #9877dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6140cd",
  "rgb": {
    "r": 97,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 254.043,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.4949,
    "c": 0.20506,
    "h": 287.1
  },
  "luminance": 0.10616
}

Semantic roles & 50–950 ramp

primary
#6140CD
secondary
#C5D396
accent
#E246BD
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #6140CD

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

Preview Lab → · Contrast checker → · Palette generator →

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