#403173#403173

#403173 is a dark, moderate violet. Relative luminance 0.045; OKLCH L 36.6% C 0.109 H 290.5°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#403173
RGBrgb(64, 49, 115)
HSLhsl(254, 40%, 32%)
HSVhsv(254, 57%, 45%)
CMYKcmyk(44.3%, 57.4%, 0%, 54.9%)
CIE-LABlab(25.33, 24.25, -35.91)
CIE-LCHlch(25.33, 43.34, 304.03°)
OKLaboklab(36.64% 0.0381 -0.1021)
OKLCHoklch(36.64% 0.109 290.5)
XYZxyz(6.3063, 4.5242, 16.7573)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403173 #647331
analogous
#314373 #403173 #613173
triadic
#403173 #734031 #317340
tetradic
#403173 #733143 #647331 #317361
square
#403173 #733143 #647331 #317361
split-complementary
#403173 #736131 #437331
monochromatic
#100C1D #281F48 #403173 #58439E #7762BC

Accessibility & contrast

On white

11.02
#403173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#403173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403173
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403173#FFFFFF#000000##FFFFFF
##4031731.0011.021.9011.02
#FFFFFF11.021.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#103D75
Deuteranopia (green-blind)
#123B72
Tritanopia (blue-blind)
#323F4D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #403173;
/* rgb */ color: rgb(64, 49, 115);
/* oklch */ color: oklch(36.6% 0.109 290.5);
Tailwind
colors: {
  custom: {
    50: '#79699c',
    500: '#403173',
    950: '#000000',
  },
}
SCSS
$custom: #403173;
$custom-light: #79699c;
$custom-dark: #000000;
JSON
{
  "hex": "#403173",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 115
  },
  "hsl": {
    "h": 253.636,
    "s": 40.244,
    "l": 32.157
  },
  "oklch": {
    "l": 0.36635,
    "c": 0.10901,
    "h": 290.5
  },
  "luminance": 0.04524
}

Semantic roles & 50–950 ramp

primary
#403173
secondary
#93A45C
accent
#D058B5
background
#F7F6F9
surface
#EEEBF2
border
#C9C6CC
text
#09060E
muted
#7B7A7E

Preview Lab

Preview with #403173

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

Preview Lab → · Contrast checker → · Palette generator →

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