#403176#403176

#403176 is a dark, moderate violet. Relative luminance 0.046; OKLCH L 36.9% C 0.113 H 289.7°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#403176
RGBrgb(64, 49, 118)
HSLhsl(253, 41%, 33%)
HSVhsv(253, 58%, 46%)
CMYKcmyk(45.8%, 58.5%, 0%, 53.7%)
CIE-LABlab(25.55, 25.20, -37.48)
CIE-LCHlch(25.55, 45.17, 303.91°)
OKLaboklab(36.86% 0.0382 -0.1067)
OKLCHoklch(36.86% 0.113 289.7)
XYZxyz(6.4818, 4.5944, 17.6813)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403176 #677631
analogous
#314576 #403176 #623176
triadic
#403176 #764031 #317640
tetradic
#403176 #763145 #677631 #317662
square
#403176 #763145 #677631 #317662
split-complementary
#403176 #766231 #457631
monochromatic
#110D20 #291F4B #403176 #5743A1 #7763BE

Accessibility & contrast

On white

10.94
#403176 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#403176 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403176
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403176#FFFFFF#000000##FFFFFF
##4031761.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A3E78
Deuteranopia (green-blind)
#0D3B74
Tritanopia (blue-blind)
#30404E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #403176;
/* rgb */ color: rgb(64, 49, 118);
/* oklch */ color: oklch(36.9% 0.113 289.7);
Tailwind
colors: {
  custom: {
    50: '#79699e',
    500: '#403176',
    950: '#000000',
  },
}
SCSS
$custom: #403176;
$custom-light: #79699e;
$custom-dark: #000000;
JSON
{
  "hex": "#403176",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 118
  },
  "hsl": {
    "h": 253.043,
    "s": 41.317,
    "l": 32.745
  },
  "oklch": {
    "l": 0.36861,
    "c": 0.11337,
    "h": 289.7
  },
  "luminance": 0.04595
}

Semantic roles & 50–950 ramp

primary
#403176
secondary
#96A65D
accent
#D157B7
background
#F7F6F9
surface
#EEEBF2
border
#C9C6CC
text
#09060E
muted
#7B7A7E

Preview Lab

Preview with #403176

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

Preview Lab → · Contrast checker → · Palette generator →

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