#6140AF#6140AF

#6140AF is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.0% C 0.168 H 292.4°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#6140AF
RGBrgb(97, 64, 175)
HSLhsl(258, 46%, 47%)
HSVhsv(258, 63%, 69%)
CMYKcmyk(44.6%, 63.4%, 0%, 31.4%)
CIE-LABlab(36.56, 40.60, -54.48)
CIE-LCHlch(36.56, 67.95, 306.70°)
OKLaboklab(47.05% 0.0642 -0.1556)
OKLCHoklch(47.05% 0.168 292.4)
XYZxyz(14.4989, 9.3029, 41.5808)
Luminance0.0930 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6140AF #8EAF40
analogous
#4056AF #6140AF #9940AF
triadic
#6140AF #AF6140 #40AF61
tetradic
#6140AF #AF4056 #8EAF40 #40AF99
square
#6140AF #AF4056 #8EAF40 #40AF99
split-complementary
#6140AF #AF9940 #56AF40
monochromatic
#2F1F55 #483082 #6140AF #8265C7 #A792D7

Accessibility & contrast

On white

7.34
#6140AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#6140AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6140AF
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6140AF#FFFFFF#000000##FFFFFF
##6140AF1.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B3
Deuteranopia (green-blind)
#0054AD
Tritanopia (blue-blind)
#4B5A71
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6140af;
/* rgb */ color: rgb(97, 64, 175);
/* oklch */ color: oklch(47.0% 0.168 292.4);
Tailwind
colors: {
  custom: {
    50: '#9476c8',
    500: '#6140af',
    950: '#000000',
  },
}
SCSS
$custom: #6140af;
$custom-light: #9476c8;
$custom-dark: #000000;
JSON
{
  "hex": "#6140af",
  "rgb": {
    "r": 97,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 257.838,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.4705,
    "c": 0.16832,
    "h": 292.4
  },
  "luminance": 0.09303
}

Semantic roles & 50–950 ramp

primary
#6140AF
secondary
#B1C388
accent
#D652AF
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0913
muted
#7E7B82

Preview Lab

Preview with #6140AF

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

Preview Lab → · Contrast checker → · Palette generator →

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