#6B40AF#6B40AF

#6B40AF is a mid, vivid violet. Relative luminance 0.099; OKLCH L 48.1% C 0.169 H 297.5°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#6B40AF
RGBrgb(107, 64, 175)
HSLhsl(263, 46%, 47%)
HSVhsv(263, 63%, 69%)
CMYKcmyk(38.9%, 63.4%, 0%, 31.4%)
CIE-LABlab(37.64, 42.74, -52.68)
CIE-LCHlch(37.64, 67.84, 309.05°)
OKLaboklab(48.08% 0.078 -0.15)
OKLCHoklch(48.08% 0.169 297.5)
XYZxyz(15.6327, 9.8875, 41.6340)
Luminance0.0989 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B40AF #84AF40
analogous
#404DAF #6B40AF #A340AF
triadic
#6B40AF #AF6B40 #40AF6B
tetradic
#6B40AF #AF404D #84AF40 #40AFA3
square
#6B40AF #AF404D #84AF40 #40AFA3
split-complementary
#6B40AF #AFA340 #4DAF40
monochromatic
#341F55 #503082 #6B40AF #8B65C7 #AD92D7

Accessibility & contrast

On white

7.05
#6B40AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#6B40AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B40AF
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B40AF#FFFFFF#000000##FFFFFF
##6B40AF1.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B2
Deuteranopia (green-blind)
#0157AD
Tritanopia (blue-blind)
#5B5971
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6b40af;
/* rgb */ color: rgb(107, 64, 175);
/* oklch */ color: oklch(48.1% 0.169 297.5);
Tailwind
colors: {
  custom: {
    50: '#9a77c8',
    500: '#6b40af',
    950: '#000000',
  },
}
SCSS
$custom: #6b40af;
$custom-light: #9a77c8;
$custom-dark: #000000;
JSON
{
  "hex": "#6b40af",
  "rgb": {
    "r": 107,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 263.243,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.48082,
    "c": 0.16908,
    "h": 297.5
  },
  "luminance": 0.09888
}

Semantic roles & 50–950 ramp

primary
#6B40AF
secondary
#ACC388
accent
#D652A3
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0913
muted
#7E7B82

Preview Lab

Preview with #6B40AF

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

Preview Lab → · Contrast checker → · Palette generator →

#6B40AF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva