#402764#402764

#402764 is a dark, moderate violet. Relative luminance 0.035; OKLCH L 33.7% C 0.104 H 299.7°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#402764
RGBrgb(64, 39, 100)
HSLhsl(265, 44%, 27%)
HSVhsv(265, 61%, 39%)
CMYKcmyk(36%, 61%, 0%, 60.8%)
CIE-LABlab(21.80, 26.13, -31.90)
CIE-LCHlch(21.80, 41.23, 309.32°)
OKLaboklab(33.69% 0.0516 -0.0904)
OKLCHoklch(33.69% 0.104 299.7)
XYZxyz(5.1396, 3.4611, 12.4514)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402764 #4B6427
analogous
#272D64 #402764 #5F2764
triadic
#402764 #644027 #276440
tetradic
#402764 #64272D #4B6427 #27645F
square
#402764 #64272D #4B6427 #27645F
split-complementary
#402764 #645F27 #2D6427
monochromatic
#0E0916 #241638 #402764 #5C3890 #794CB9

Accessibility & contrast

On white

12.41
#402764 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#402764 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402764
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402764#FFFFFF#000000##FFFFFF
##4027641.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A3466
Deuteranopia (green-blind)
#143463
Tritanopia (blue-blind)
#383341
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #402764;
/* rgb */ color: rgb(64, 39, 100);
/* oklch */ color: oklch(33.7% 0.104 299.7);
Tailwind
colors: {
  custom: {
    50: '#776290',
    500: '#402764',
    950: '#000000',
  },
}
SCSS
$custom: #402764;
$custom-light: #776290;
$custom-dark: #000000;
JSON
{
  "hex": "#402764",
  "rgb": {
    "r": 64,
    "g": 39,
    "b": 100
  },
  "hsl": {
    "h": 264.59,
    "s": 43.885,
    "l": 27.255
  },
  "oklch": {
    "l": 0.33693,
    "c": 0.10405,
    "h": 299.7
  },
  "luminance": 0.03461
}

Semantic roles & 50–950 ramp

primary
#402764
secondary
#7A9750
accent
#D4549F
background
#F7F5F8
surface
#EDEAF0
border
#C8C6CB
text
#09050C
muted
#7B797D

Preview Lab

Preview with #402764

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

Preview Lab → · Contrast checker → · Palette generator →

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