#402673#402673

#402673 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.7% C 0.126 H 294.4°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#402673
RGBrgb(64, 38, 115)
HSLhsl(260, 50%, 30%)
HSVhsv(260, 67%, 45%)
CMYKcmyk(44.3%, 67%, 0%, 54.9%)
CIE-LABlab(22.70, 31.17, -40.16)
CIE-LCHlch(22.70, 50.84, 307.81°)
OKLaboklab(34.71% 0.0521 -0.1146)
OKLCHoklch(34.71% 0.126 294.4)
XYZxyz(5.9011, 3.7139, 16.6223)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402673 #597326
analogous
#263273 #402673 #672673
triadic
#402673 #734026 #267340
tetradic
#402673 #732632 #597326 #267367
square
#402673 #732632 #597326 #267367
split-complementary
#402673 #736726 #327326
monochromatic
#0D0817 #261745 #402673 #5A35A1 #774FC5

Accessibility & contrast

On white

12.05
#402673 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#402673 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402673
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402673#FFFFFF#000000##FFFFFF
##4026731.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003775
Deuteranopia (green-blind)
#003571
Tritanopia (blue-blind)
#323849
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #402673;
/* rgb */ color: rgb(64, 38, 115);
/* oklch */ color: oklch(34.7% 0.126 294.4);
Tailwind
colors: {
  custom: {
    50: '#79629c',
    500: '#402673',
    950: '#000000',
  },
}
SCSS
$custom: #402673;
$custom-light: #79629c;
$custom-dark: #000000;
JSON
{
  "hex": "#402673",
  "rgb": {
    "r": 64,
    "g": 38,
    "b": 115
  },
  "hsl": {
    "h": 260.26,
    "s": 50.327,
    "l": 30
  },
  "oklch": {
    "l": 0.34708,
    "c": 0.12594,
    "h": 294.4
  },
  "luminance": 0.03714
}

Semantic roles & 50–950 ramp

primary
#402673
secondary
#88A64F
accent
#DA4EAB
background
#F7F5F9
surface
#EEEAF2
border
#C9C6CC
text
#09050E
muted
#7B797E

Preview Lab

Preview with #402673

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

Preview Lab → · Contrast checker → · Palette generator →

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