#402679#402679

#402679 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.2% C 0.134 H 292.6°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#402679
RGBrgb(64, 38, 121)
HSLhsl(259, 52%, 31%)
HSVhsv(259, 69%, 47%)
CMYKcmyk(47.1%, 68.6%, 0%, 52.5%)
CIE-LABlab(23.19, 32.97, -43.20)
CIE-LCHlch(23.19, 54.34, 307.35°)
OKLaboklab(35.22% 0.0514 -0.1236)
OKLCHoklch(35.22% 0.134 292.6)
XYZxyz(6.2577, 3.8565, 18.5001)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402679 #5F7926
analogous
#263579 #402679 #692679
triadic
#402679 #794026 #267940
tetradic
#402679 #792635 #5F7926 #267969
square
#402679 #792635 #5F7926 #267969
split-complementary
#402679 #796926 #357926
monochromatic
#0F091C #27174A #402679 #5935A8 #7651C8

Accessibility & contrast

On white

11.86
#402679 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#402679 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402679
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402679#FFFFFF#000000##FFFFFF
##4026791.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387C
Deuteranopia (green-blind)
#003677
Tritanopia (blue-blind)
#2F3A4C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #402679;
/* rgb */ color: rgb(64, 38, 121);
/* oklch */ color: oklch(35.2% 0.134 292.6);
Tailwind
colors: {
  custom: {
    50: '#7a62a0',
    500: '#402679',
    950: '#000000',
  },
}
SCSS
$custom: #402679;
$custom-light: #7a62a0;
$custom-dark: #000000;
JSON
{
  "hex": "#402679",
  "rgb": {
    "r": 64,
    "g": 38,
    "b": 121
  },
  "hsl": {
    "h": 258.795,
    "s": 52.201,
    "l": 31.176
  },
  "oklch": {
    "l": 0.35215,
    "c": 0.13384,
    "h": 292.6
  },
  "luminance": 0.03857
}

Semantic roles & 50–950 ramp

primary
#402679
secondary
#8FAB50
accent
#DC4CAF
background
#F7F5F9
surface
#EEEAF2
border
#C9C6CC
text
#0A050F
muted
#7C797E

Preview Lab

Preview with #402679

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

Preview Lab → · Contrast checker → · Palette generator →

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