#403166#403166

#403166 is a dark, moderate violet. Relative luminance 0.042; OKLCH L 35.7% C 0.090 H 294.5°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#403166
RGBrgb(64, 49, 102)
HSLhsl(257, 35%, 30%)
HSVhsv(257, 52%, 40%)
CMYKcmyk(37.3%, 52%, 0%, 60%)
CIE-LABlab(24.47, 20.25, -28.94)
CIE-LCHlch(24.47, 35.32, 304.98°)
OKLaboklab(35.71% 0.0372 -0.0817)
OKLCHoklch(35.71% 0.09 294.5)
XYZxyz(5.6103, 4.2458, 13.0917)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403166 #576631
analogous
#313D66 #403166 #5B3166
triadic
#403166 #664031 #316640
tetradic
#403166 #66313D #576631 #31665B
square
#403166 #66313D #576631 #31665B
split-complementary
#403166 #665B31 #3D6631
monochromatic
#0D0A15 #261D3D #403166 #5A458F #775FB2

Accessibility & contrast

On white

11.36
#403166 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#403166 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403166
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403166#FFFFFF#000000##FFFFFF
##4031661.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E3B68
Deuteranopia (green-blind)
#213965
Tritanopia (blue-blind)
#373B46
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #403166;
/* rgb */ color: rgb(64, 49, 102);
/* oklch */ color: oklch(35.7% 0.090 294.5);
Tailwind
colors: {
  custom: {
    50: '#776992',
    500: '#403166',
    950: '#000000',
  },
}
SCSS
$custom: #403166;
$custom-light: #776992;
$custom-dark: #000000;
JSON
{
  "hex": "#403166",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 102
  },
  "hsl": {
    "h": 256.981,
    "s": 35.099,
    "l": 29.608
  },
  "oklch": {
    "l": 0.35712,
    "c": 0.08974,
    "h": 294.5
  },
  "luminance": 0.04246
}

Semantic roles & 50–950 ramp

primary
#403166
secondary
#86975C
accent
#CB5DAC
background
#F7F6F9
surface
#EDEBF1
border
#C8C6CB
text
#09060D
muted
#7B7A7E

Preview Lab

Preview with #403166

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

Preview Lab → · Contrast checker → · Palette generator →

#403166 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva