#402279#402279

#402279 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.6% C 0.139 H 293.6°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#402279
RGBrgb(64, 34, 121)
HSLhsl(261, 56%, 30%)
HSVhsv(261, 72%, 47%)
CMYKcmyk(47.1%, 71.9%, 0%, 52.5%)
CIE-LABlab(22.35, 35.27, -44.57)
CIE-LCHlch(22.35, 56.84, 308.36°)
OKLaboklab(34.61% 0.0558 -0.1276)
OKLCHoklch(34.61% 0.139 293.6)
XYZxyz(6.1366, 3.6143, 18.4598)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402279 #5B7922
analogous
#222F79 #402279 #6B2279
triadic
#402279 #794022 #227940
tetradic
#402279 #79222F #5B7922 #22796B
square
#402279 #79222F #5B7922 #22796B
split-complementary
#402279 #796B22 #2F7922
monochromatic
#0D0719 #271549 #402279 #592FA9 #7649CC

Accessibility & contrast

On white

12.19
#402279 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#402279 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402279
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402279#FFFFFF#000000##FFFFFF
##4022791.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367C
Deuteranopia (green-blind)
#003477
Tritanopia (blue-blind)
#2F384A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #402279;
/* rgb */ color: rgb(64, 34, 121);
/* oklch */ color: oklch(34.6% 0.139 293.6);
Tailwind
colors: {
  custom: {
    50: '#7b60a0',
    500: '#402279',
    950: '#000000',
  },
}
SCSS
$custom: #402279;
$custom-light: #7b60a0;
$custom-dark: #000000;
JSON
{
  "hex": "#402279",
  "rgb": {
    "r": 64,
    "g": 34,
    "b": 121
  },
  "hsl": {
    "h": 260.69,
    "s": 56.129,
    "l": 30.392
  },
  "oklch": {
    "l": 0.34613,
    "c": 0.13924,
    "h": 293.6
  },
  "luminance": 0.03615
}

Semantic roles & 50–950 ramp

primary
#402279
secondary
#8AAC4B
accent
#DF48AB
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #402279

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

Preview Lab → · Contrast checker → · Palette generator →

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