#403178#403178

#403178 is a dark, moderate violet. Relative luminance 0.046; OKLCH L 37.0% C 0.116 H 289.2°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#403178
RGBrgb(64, 49, 120)
HSLhsl(253, 42%, 33%)
HSVhsv(253, 59%, 47%)
CMYKcmyk(46.7%, 59.2%, 0%, 52.9%)
CIE-LABlab(25.69, 25.83, -38.52)
CIE-LCHlch(25.69, 46.38, 303.85°)
OKLaboklab(37.01% 0.0382 -0.1098)
OKLCHoklch(37.01% 0.116 289.2)
XYZxyz(6.6019, 4.6424, 18.3139)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403178 #697831
analogous
#314578 #403178 #633178
triadic
#403178 #784031 #317840
tetradic
#403178 #783145 #697831 #317863
square
#403178 #783145 #697831 #317863
split-complementary
#403178 #786331 #457831
monochromatic
#120E21 #291F4D #403178 #5743A3 #7764C0

Accessibility & contrast

On white

10.89
#403178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#403178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403178
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403178#FFFFFF#000000##FFFFFF
##4031781.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#053E7A
Deuteranopia (green-blind)
#083B76
Tritanopia (blue-blind)
#2F414F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #403178;
/* rgb */ color: rgb(64, 49, 120);
/* oklch */ color: oklch(37.0% 0.116 289.2);
Tailwind
colors: {
  custom: {
    50: '#79699f',
    500: '#403178',
    950: '#000000',
  },
}
SCSS
$custom: #403178;
$custom-light: #79699f;
$custom-dark: #000000;
JSON
{
  "hex": "#403178",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 120
  },
  "hsl": {
    "h": 252.676,
    "s": 42.012,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37013,
    "c": 0.11625,
    "h": 289.2
  },
  "luminance": 0.04643
}

Semantic roles & 50–950 ramp

primary
#403178
secondary
#98A75E
accent
#D256B8
background
#F7F6F9
surface
#EEEBF2
border
#C9C6CC
text
#09060E
muted
#7B7A7E

Preview Lab

Preview with #403178

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

Preview Lab → · Contrast checker → · Palette generator →

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