#6B408F#6B408F

#6B408F is a mid, vivid violet. Relative luminance 0.088; OKLCH L 45.9% C 0.130 H 307.2°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#6B408F
RGBrgb(107, 64, 143)
HSLhsl(273, 38%, 41%)
HSVhsv(273, 55%, 56%)
CMYKcmyk(25.2%, 55.2%, 0%, 43.9%)
CIE-LABlab(35.55, 34.45, -36.77)
CIE-LCHlch(35.55, 50.39, 313.13°)
OKLaboklab(45.89% 0.0783 -0.1033)
OKLCHoklch(45.89% 0.13 307.2)
XYZxyz(12.8537, 8.7759, 26.9980)
Luminance0.0878 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B408F #648F40
analogous
#43408F #6B408F #8F408B
triadic
#6B408F #8F6B40 #408F6B
tetradic
#6B408F #8F4340 #648F40 #408B8F
square
#6B408F #8F4340 #648F40 #408B8F
split-complementary
#6B408F #8B8F40 #408F43
monochromatic
#2C1A3A #4B2D65 #6B408F #8A58B4 #A882C7

Accessibility & contrast

On white

7.62
#6B408F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#6B408F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B408F
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B408F#FFFFFF#000000##FFFFFF
##6B408F1.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275292
Deuteranopia (green-blind)
#35548D
Tritanopia (blue-blind)
#664E61
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #6b408f;
/* rgb */ color: rgb(107, 64, 143);
/* oklch */ color: oklch(45.9% 0.130 307.2);
Tailwind
colors: {
  custom: {
    50: '#9876b0',
    500: '#6b408f',
    950: '#000000',
  },
}
SCSS
$custom: #6b408f;
$custom-light: #9876b0;
$custom-dark: #000000;
JSON
{
  "hex": "#6b408f",
  "rgb": {
    "r": 107,
    "g": 64,
    "b": 143
  },
  "hsl": {
    "h": 272.658,
    "s": 38.164,
    "l": 40.588
  },
  "oklch": {
    "l": 0.45885,
    "c": 0.12964,
    "h": 307.2
  },
  "luminance": 0.08776
}

Semantic roles & 50–950 ramp

primary
#6B408F
secondary
#93B279
accent
#CE5A8F
background
#F9F7FA
surface
#F2EDF5
border
#CCC8CF
text
#0E0910
muted
#7E7B7F

Preview Lab

Preview with #6B408F

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

Preview Lab → · Contrast checker → · Palette generator →

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