#6A408E#6A408E

#6A408E is a mid, vivid violet. Relative luminance 0.087; OKLCH L 45.7% C 0.128 H 306.9°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#6A408E
RGBrgb(106, 64, 142)
HSLhsl(272, 38%, 40%)
HSVhsv(272, 55%, 56%)
CMYKcmyk(25.4%, 54.9%, 0%, 44.3%)
CIE-LABlab(35.37, 33.92, -36.45)
CIE-LCHlch(35.37, 49.80, 312.94°)
OKLaboklab(45.71% 0.0769 -0.1024)
OKLCHoklch(45.71% 0.128 306.9)
XYZxyz(12.6587, 8.6841, 26.5953)
Luminance0.0868 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A408E #648E40
analogous
#43408E #6A408E #8E408B
triadic
#6A408E #8E6A40 #408E6A
tetradic
#6A408E #8E4340 #648E40 #408B8E
square
#6A408E #8E4340 #648E40 #408B8E
split-complementary
#6A408E #8B8E40 #408E43
monochromatic
#2B1A3A #4B2D64 #6A408E #8958B4 #A782C7

Accessibility & contrast

On white

7.67
#6A408E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#6A408E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A408E
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A408E#FFFFFF#000000##FFFFFF
##6A408E1.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275291
Deuteranopia (green-blind)
#35548C
Tritanopia (blue-blind)
#644E61
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #6a408e;
/* rgb */ color: rgb(106, 64, 142);
/* oklch */ color: oklch(45.7% 0.128 306.9);
Tailwind
colors: {
  custom: {
    50: '#9776af',
    500: '#6a408e',
    950: '#000000',
  },
}
SCSS
$custom: #6a408e;
$custom-light: #9776af;
$custom-dark: #000000;
JSON
{
  "hex": "#6a408e",
  "rgb": {
    "r": 106,
    "g": 64,
    "b": 142
  },
  "hsl": {
    "h": 272.308,
    "s": 37.864,
    "l": 40.392
  },
  "oklch": {
    "l": 0.45705,
    "c": 0.12807,
    "h": 306.9
  },
  "luminance": 0.08684
}

Semantic roles & 50–950 ramp

primary
#6A408E
secondary
#93B179
accent
#CE5A8F
background
#F9F7FA
surface
#F2EDF4
border
#CCC8CE
text
#0E0810
muted
#7E7B7F

Preview Lab

Preview with #6A408E

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

Preview Lab → · Contrast checker → · Palette generator →

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