#403180#403180

#403180 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 37.6% C 0.128 H 287.3°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#403180
RGBrgb(64, 49, 128)
HSLhsl(251, 45%, 35%)
HSVhsv(251, 62%, 50%)
CMYKcmyk(50%, 61.7%, 0%, 49.8%)
CIE-LABlab(26.29, 28.38, -42.60)
CIE-LCHlch(26.29, 51.19, 303.67°)
OKLaboklab(37.64% 0.038 -0.1218)
OKLCHoklch(37.64% 0.128 287.3)
XYZxyz(7.1078, 4.8448, 20.9785)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403180 #718031
analogous
#314A80 #403180 #673180
triadic
#403180 #804031 #318040
tetradic
#403180 #80314A #718031 #318067
square
#403180 #80314A #718031 #318067
split-complementary
#403180 #806731 #4A8031
monochromatic
#140F27 #2A2054 #403180 #5642AC #7967C5

Accessibility & contrast

On white

10.67
#403180 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#403180 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403180
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403180#FFFFFF#000000##FFFFFF
##4031801.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004083
Deuteranopia (green-blind)
#003C7E
Tritanopia (blue-blind)
#2A4353
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #403180;
/* rgb */ color: rgb(64, 49, 128);
/* oklch */ color: oklch(37.6% 0.128 287.3);
Tailwind
colors: {
  custom: {
    50: '#7a6aa5',
    500: '#403180',
    950: '#000000',
  },
}
SCSS
$custom: #403180;
$custom-light: #7a6aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#403180",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 128
  },
  "hsl": {
    "h": 251.392,
    "s": 44.633,
    "l": 34.706
  },
  "oklch": {
    "l": 0.37643,
    "c": 0.12762,
    "h": 287.3
  },
  "luminance": 0.04845
}

Semantic roles & 50–950 ramp

primary
#403180
secondary
#9EAC61
accent
#D453BC
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A060F
muted
#7C7A7F

Preview Lab

Preview with #403180

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

Preview Lab → · Contrast checker → · Palette generator →

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