#6B408B#6B408B

#6B408B is a mid, vivid violet. Relative luminance 0.087; OKLCH L 45.6% C 0.125 H 308.7°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#6B408B
RGBrgb(107, 64, 139)
HSLhsl(274, 37%, 40%)
HSVhsv(274, 54%, 55%)
CMYKcmyk(23%, 54%, 0%, 45.5%)
CIE-LABlab(35.32, 33.46, -34.69)
CIE-LCHlch(35.32, 48.20, 313.97°)
OKLaboklab(45.64% 0.078 -0.0972)
OKLCHoklch(45.64% 0.125 308.7)
XYZxyz(12.5561, 8.6569, 25.4306)
Luminance0.0866 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B408B #608B40
analogous
#45408B #6B408B #8B4086
triadic
#6B408B #8B6B40 #408B6B
tetradic
#6B408B #8B4540 #608B40 #40868B
square
#6B408B #8B4540 #608B40 #40868B
split-complementary
#6B408B #868B40 #408B45
monochromatic
#2A1937 #4B2D61 #6B408B #8B57B2 #A881C5

Accessibility & contrast

On white

7.69
#6B408B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#6B408B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B408B
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B408B#FFFFFF#000000##FFFFFF
##6B408B1.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A518E
Deuteranopia (green-blind)
#385489
Tritanopia (blue-blind)
#674D5F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #6b408b;
/* rgb */ color: rgb(107, 64, 139);
/* oklch */ color: oklch(45.6% 0.125 308.7);
Tailwind
colors: {
  custom: {
    50: '#9776ad',
    500: '#6b408b',
    950: '#000000',
  },
}
SCSS
$custom: #6b408b;
$custom-light: #9776ad;
$custom-dark: #000000;
JSON
{
  "hex": "#6b408b",
  "rgb": {
    "r": 107,
    "g": 64,
    "b": 139
  },
  "hsl": {
    "h": 274.4,
    "s": 36.946,
    "l": 39.804
  },
  "oklch": {
    "l": 0.45636,
    "c": 0.12467,
    "h": 308.7
  },
  "luminance": 0.08657
}

Semantic roles & 50–950 ramp

primary
#6B408B
secondary
#8FAF78
accent
#CD5B8C
background
#F9F7FA
surface
#F2EDF4
border
#CCC8CE
text
#0E0810
muted
#7E7B7F

Preview Lab

Preview with #6B408B

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

Preview Lab → · Contrast checker → · Palette generator →

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