#6740AF#6740AF

#6740AF is a mid, vivid violet. Relative luminance 0.096; OKLCH L 47.7% C 0.169 H 295.4°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#6740AF
RGBrgb(103, 64, 175)
HSLhsl(261, 46%, 47%)
HSVhsv(261, 63%, 69%)
CMYKcmyk(41.1%, 63.4%, 0%, 31.4%)
CIE-LABlab(37.20, 41.87, -53.42)
CIE-LCHlch(37.20, 67.87, 308.09°)
OKLaboklab(47.66% 0.0725 -0.1523)
OKLCHoklch(47.66% 0.169 295.4)
XYZxyz(15.1627, 9.6452, 41.6120)
Luminance0.0965 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6740AF #88AF40
analogous
#4051AF #6740AF #9F40AF
triadic
#6740AF #AF6740 #40AF67
tetradic
#6740AF #AF4051 #88AF40 #40AF9F
square
#6740AF #AF4051 #88AF40 #40AF9F
split-complementary
#6740AF #AF9F40 #51AF40
monochromatic
#321F55 #4D3082 #6740AF #8865C7 #AA92D7

Accessibility & contrast

On white

7.17
#6740AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#6740AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6740AF
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6740AF#FFFFFF#000000##FFFFFF
##6740AF1.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B2
Deuteranopia (green-blind)
#0056AD
Tritanopia (blue-blind)
#545971
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #6740af;
/* rgb */ color: rgb(103, 64, 175);
/* oklch */ color: oklch(47.7% 0.169 295.4);
Tailwind
colors: {
  custom: {
    50: '#9877c8',
    500: '#6740af',
    950: '#000000',
  },
}
SCSS
$custom: #6740af;
$custom-light: #9877c8;
$custom-dark: #000000;
JSON
{
  "hex": "#6740af",
  "rgb": {
    "r": 103,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 261.081,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.4766,
    "c": 0.16867,
    "h": 295.4
  },
  "luminance": 0.09646
}

Semantic roles & 50–950 ramp

primary
#6740AF
secondary
#AEC388
accent
#D652A8
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0913
muted
#7E7B82

Preview Lab

Preview with #6740AF

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

Preview Lab → · Contrast checker → · Palette generator →

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