#402999#402999

#402999 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.6% C 0.171 H 284.4°. Best body text is #FFFFFF at 10.53:1 contrast (WCAG AA passes).

Color values

HEX#402999
RGBrgb(64, 41, 153)
HSLhsl(252, 58%, 38%)
HSVhsv(252, 73%, 60%)
CMYKcmyk(58.2%, 73.2%, 0%, 40%)
CIE-LABlab(26.66, 41.05, -57.50)
CIE-LCHlch(26.66, 70.65, 305.53°)
OKLaboklab(38.58% 0.0426 -0.1655)
OKLCHoklch(38.58% 0.171 284.4)
XYZxyz(8.6553, 4.9752, 30.6350)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402999 #829929
analogous
#294A99 #402999 #782999
triadic
#402999 #994029 #299940
tetradic
#402999 #99294A #829929 #299978
square
#402999 #99294A #829929 #299978
split-complementary
#402999 #997829 #4A9929
monochromatic
#180F38 #2C1C69 #402999 #5436C9 #7D66D6

Accessibility & contrast

On white

10.53
#402999 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#402999 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402999
10.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402999#FFFFFF#000000##FFFFFF
##4029991.0010.532.0010.53
#FFFFFF10.531.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429C
Deuteranopia (green-blind)
#003B97
Tritanopia (blue-blind)
#11475E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #402999;
/* rgb */ color: rgb(64, 41, 153);
/* oklch */ color: oklch(38.6% 0.171 284.4);
Tailwind
colors: {
  custom: {
    50: '#7f65b8',
    500: '#402999',
    950: '#000000',
  },
}
SCSS
$custom: #402999;
$custom-light: #7f65b8;
$custom-dark: #000000;
JSON
{
  "hex": "#402999",
  "rgb": {
    "r": 64,
    "g": 41,
    "b": 153
  },
  "hsl": {
    "h": 252.321,
    "s": 57.732,
    "l": 38.039
  },
  "oklch": {
    "l": 0.38578,
    "c": 0.17094,
    "h": 284.4
  },
  "luminance": 0.04976
}

Semantic roles & 50–950 ramp

primary
#402999
secondary
#AABC62
accent
#E147C1
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #402999

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

Preview Lab → · Contrast checker → · Palette generator →

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