#403172#403172

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

Color values

HEX#403172
RGBrgb(64, 49, 114)
HSLhsl(254, 40%, 32%)
HSVhsv(254, 57%, 45%)
CMYKcmyk(43.9%, 57%, 0%, 55.3%)
CIE-LABlab(25.26, 23.94, -35.39)
CIE-LCHlch(25.26, 42.73, 304.08°)
OKLaboklab(36.56% 0.0381 -0.1006)
OKLCHoklch(36.56% 0.108 290.7)
XYZxyz(6.2491, 4.5013, 16.4559)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403172 #637231
analogous
#314372 #403172 #613172
triadic
#403172 #724031 #317240
tetradic
#403172 #723143 #637231 #317261
square
#403172 #723143 #637231 #317261
split-complementary
#403172 #726131 #437231
monochromatic
#100C1C #281F47 #403172 #58439D #7762BB

Accessibility & contrast

On white

11.05
#403172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #403172
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403172#FFFFFF#000000##FFFFFF
##4031721.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#113D74
Deuteranopia (green-blind)
#143A71
Tritanopia (blue-blind)
#323F4C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #403172;
/* rgb */ color: rgb(64, 49, 114);
/* oklch */ color: oklch(36.6% 0.108 290.7);
Tailwind
colors: {
  custom: {
    50: '#78699b',
    500: '#403172',
    950: '#000000',
  },
}
SCSS
$custom: #403172;
$custom-light: #78699b;
$custom-dark: #000000;
JSON
{
  "hex": "#403172",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 114
  },
  "hsl": {
    "h": 253.846,
    "s": 39.877,
    "l": 31.961
  },
  "oklch": {
    "l": 0.36561,
    "c": 0.10756,
    "h": 290.7
  },
  "luminance": 0.04502
}

Semantic roles & 50–950 ramp

primary
#403172
secondary
#93A35C
accent
#D058B4
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#09060E
muted
#7B7A7E

Preview Lab

Preview with #403172

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

Preview Lab → · Contrast checker → · Palette generator →

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