#403286#403286

#403286 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.3% C 0.135 H 285.8°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#403286
RGBrgb(64, 50, 134)
HSLhsl(250, 46%, 36%)
HSVhsv(250, 63%, 53%)
CMYKcmyk(52.2%, 62.7%, 0%, 47.5%)
CIE-LABlab(27.00, 29.67, -45.21)
CIE-LCHlch(27.00, 54.08, 303.28°)
OKLaboklab(38.31% 0.0366 -0.1295)
OKLCHoklch(38.31% 0.135 285.8)
XYZxyz(7.5568, 5.0920, 23.1343)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403286 #788632
analogous
#324E86 #403286 #6A3286
triadic
#403286 #864032 #328640
tetradic
#403286 #86324E #788632 #32866A
square
#403286 #86324E #788632 #32866A
split-complementary
#403286 #866A32 #4E8632
monochromatic
#15112D #2B2159 #403286 #5543B3 #7A6BC8

Accessibility & contrast

On white

10.40
#403286 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#403286 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403286
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403286#FFFFFF#000000##FFFFFF
##4032861.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004289
Deuteranopia (green-blind)
#003D84
Tritanopia (blue-blind)
#264657
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #403286;
/* rgb */ color: rgb(64, 50, 134);
/* oklch */ color: oklch(38.3% 0.135 285.8);
Tailwind
colors: {
  custom: {
    50: '#7b6aaa',
    500: '#403286',
    950: '#000000',
  },
}
SCSS
$custom: #403286;
$custom-light: #7b6aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#403286",
  "rgb": {
    "r": 64,
    "g": 50,
    "b": 134
  },
  "hsl": {
    "h": 250,
    "s": 45.652,
    "l": 36.078
  },
  "oklch": {
    "l": 0.38308,
    "c": 0.13456,
    "h": 285.8
  },
  "luminance": 0.05092
}

Semantic roles & 50–950 ramp

primary
#403286
secondary
#A3AF64
accent
#D552C0
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #403286

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

Preview Lab → · Contrast checker → · Palette generator →

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