#402153#402153

#402153 is a dark, moderate violet. Relative luminance 0.028; OKLCH L 31.4% C 0.092 H 310.8°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).

Color values

HEX#402153
RGBrgb(64, 33, 83)
HSLhsl(277, 43%, 23%)
HSVhsv(277, 60%, 33%)
CMYKcmyk(22.9%, 60.2%, 0%, 67.5%)
CIE-LABlab(19.23, 25.17, -24.73)
CIE-LCHlch(19.23, 35.29, 315.50°)
OKLaboklab(31.44% 0.0599 -0.0693)
OKLCHoklch(31.44% 0.092 310.8)
XYZxyz(4.2193, 2.8023, 8.5006)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402153 #345321
analogous
#272153 #402153 #53214D
triadic
#402153 #534021 #215340
tetradic
#402153 #532721 #345321 #214D53
square
#402153 #532721 #345321 #214D53
split-complementary
#402153 #4D5321 #215327
monochromatic
#110916 #1E1027 #402153 #62327F #8444AB

Accessibility & contrast

On white

13.46
#402153 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#402153 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402153
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402153#FFFFFF#000000##FFFFFF
##4021531.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122D55
Deuteranopia (green-blind)
#1D2F52
Tritanopia (blue-blind)
#3E2A36
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #402153;
/* rgb */ color: rgb(64, 33, 83);
/* oklch */ color: oklch(31.4% 0.092 310.8);
Tailwind
colors: {
  custom: {
    50: '#765e83',
    500: '#402153',
    950: '#000000',
  },
}
SCSS
$custom: #402153;
$custom-light: #765e83;
$custom-dark: #000000;
JSON
{
  "hex": "#402153",
  "rgb": {
    "r": 64,
    "g": 33,
    "b": 83
  },
  "hsl": {
    "h": 277.2,
    "s": 43.103,
    "l": 22.745
  },
  "oklch": {
    "l": 0.31436,
    "c": 0.09164,
    "h": 310.8
  },
  "luminance": 0.02802
}

Semantic roles & 50–950 ramp

primary
#402153
secondary
#608749
accent
#D35585
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09040B
muted
#7B797C

Preview Lab

Preview with #402153

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

Preview Lab → · Contrast checker → · Palette generator →

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