#6A408C#6A408C

#6A408C is a mid, vivid violet. Relative luminance 0.086; OKLCH L 45.6% C 0.126 H 307.7°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#6A408C
RGBrgb(106, 64, 140)
HSLhsl(273, 37%, 40%)
HSVhsv(273, 54%, 55%)
CMYKcmyk(24.3%, 54.3%, 0%, 45.1%)
CIE-LABlab(35.25, 33.43, -35.41)
CIE-LCHlch(35.25, 48.70, 313.34°)
OKLaboklab(45.58% 0.0768 -0.0994)
OKLCHoklch(45.58% 0.126 307.7)
XYZxyz(12.5099, 8.6246, 25.8115)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A408C #628C40
analogous
#44408C #6A408C #8C4088
triadic
#6A408C #8C6A40 #408C6A
tetradic
#6A408C #8C4440 #628C40 #40888C
square
#6A408C #8C4440 #628C40 #40888C
split-complementary
#6A408C #888C40 #408C44
monochromatic
#2A1A38 #4A2D62 #6A408C #8957B2 #A781C5

Accessibility & contrast

On white

7.71
#6A408C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#6A408C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A408C
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A408C#FFFFFF#000000##FFFFFF
##6A408C1.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29518F
Deuteranopia (green-blind)
#36538A
Tritanopia (blue-blind)
#654D60
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #6a408c;
/* rgb */ color: rgb(106, 64, 140);
/* oklch */ color: oklch(45.6% 0.126 307.7);
Tailwind
colors: {
  custom: {
    50: '#9776ae',
    500: '#6a408c',
    950: '#000000',
  },
}
SCSS
$custom: #6a408c;
$custom-light: #9776ae;
$custom-dark: #000000;
JSON
{
  "hex": "#6a408c",
  "rgb": {
    "r": 106,
    "g": 64,
    "b": 140
  },
  "hsl": {
    "h": 273.158,
    "s": 37.255,
    "l": 40
  },
  "oklch": {
    "l": 0.4558,
    "c": 0.12557,
    "h": 307.7
  },
  "luminance": 0.08624
}

Semantic roles & 50–950 ramp

primary
#6A408C
secondary
#91B078
accent
#CD5B8E
background
#F9F7FA
surface
#F2EDF4
border
#CCC8CE
text
#0E0810
muted
#7E7B7F

Preview Lab

Preview with #6A408C

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

Preview Lab → · Contrast checker → · Palette generator →

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