#403276#403276

#403276 is a dark, moderate violet. Relative luminance 0.047; OKLCH L 37.0% C 0.112 H 289.3°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#403276
RGBrgb(64, 50, 118)
HSLhsl(252, 40%, 33%)
HSVhsv(252, 58%, 46%)
CMYKcmyk(45.8%, 57.6%, 0%, 53.7%)
CIE-LABlab(25.80, 24.55, -37.07)
CIE-LCHlch(25.80, 44.47, 303.51°)
OKLaboklab(37.05% 0.0369 -0.1055)
OKLCHoklch(37.05% 0.112 289.3)
XYZxyz(6.5240, 4.6790, 17.6954)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403276 #687632
analogous
#324676 #403276 #623276
triadic
#403276 #764032 #327640
tetradic
#403276 #763246 #687632 #327662
square
#403276 #763246 #687632 #327662
split-complementary
#403276 #766232 #467632
monochromatic
#110E20 #29204B #403276 #5744A1 #7765BE

Accessibility & contrast

On white

10.85
#403276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#403276 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403276
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403276#FFFFFF#000000##FFFFFF
##4032761.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E3E78
Deuteranopia (green-blind)
#103B75
Tritanopia (blue-blind)
#30414F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #403276;
/* rgb */ color: rgb(64, 50, 118);
/* oklch */ color: oklch(37.0% 0.112 289.3);
Tailwind
colors: {
  custom: {
    50: '#796a9e',
    500: '#403276',
    950: '#000000',
  },
}
SCSS
$custom: #403276;
$custom-light: #796a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#403276",
  "rgb": {
    "r": 64,
    "g": 50,
    "b": 118
  },
  "hsl": {
    "h": 252.353,
    "s": 40.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37048,
    "c": 0.1118,
    "h": 289.3
  },
  "luminance": 0.04679
}

Semantic roles & 50–950 ramp

primary
#403276
secondary
#97A55E
accent
#D057B7
background
#F7F6F9
surface
#EEEBF2
border
#C9C6CC
text
#09060E
muted
#7B7A7E

Preview Lab

Preview with #403276

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

Preview Lab → · Contrast checker → · Palette generator →

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