#402296#402296

#402296 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.175 H 286.2°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#402296
RGBrgb(64, 34, 150)
HSLhsl(256, 63%, 36%)
HSVhsv(256, 77%, 59%)
CMYKcmyk(57.3%, 77.3%, 0%, 41.2%)
CIE-LABlab(25.06, 43.85, -58.28)
CIE-LCHlch(25.06, 72.94, 306.95°)
OKLaboklab(37.36% 0.0489 -0.1678)
OKLCHoklch(37.36% 0.175 286.2)
XYZxyz(8.1897, 4.4356, 29.2729)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402296 #789622
analogous
#223E96 #402296 #7A2296
triadic
#402296 #964022 #229640
tetradic
#402296 #96223E #789622 #22967A
square
#402296 #96223E #789622 #22967A
split-complementary
#402296 #967A22 #3E9622
monochromatic
#150B32 #2B1764 #402296 #552DC8 #7A59D9

Accessibility & contrast

On white

11.13
#402296 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#402296 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402296
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402296#FFFFFF#000000##FFFFFF
##4022961.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E99
Deuteranopia (green-blind)
#003894
Tritanopia (blue-blind)
#17435B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #402296;
/* rgb */ color: rgb(64, 34, 150);
/* oklch */ color: oklch(37.4% 0.175 286.2);
Tailwind
colors: {
  custom: {
    50: '#7f61b6',
    500: '#402296',
    950: '#000000',
  },
}
SCSS
$custom: #402296;
$custom-light: #7f61b6;
$custom-dark: #000000;
JSON
{
  "hex": "#402296",
  "rgb": {
    "r": 64,
    "g": 34,
    "b": 150
  },
  "hsl": {
    "h": 255.517,
    "s": 63.043,
    "l": 36.078
  },
  "oklch": {
    "l": 0.3736,
    "c": 0.17477,
    "h": 286.2
  },
  "luminance": 0.04436
}

Semantic roles & 50–950 ramp

primary
#402296
secondary
#A3BE56
accent
#E642BC
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #402296

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

Preview Lab → · Contrast checker → · Palette generator →

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