#401862#401862

#401862 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.125 H 304.8°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#401862
RGBrgb(64, 24, 98)
HSLhsl(272, 61%, 24%)
HSVhsv(272, 76%, 38%)
CMYKcmyk(34.7%, 75.5%, 0%, 61.6%)
CIE-LABlab(18.48, 34.21, -35.95)
CIE-LCHlch(18.48, 49.63, 313.57°)
OKLaboklab(31.24% 0.0711 -0.1022)
OKLCHoklch(31.24% 0.125 304.8)
XYZxyz(4.6451, 2.6251, 11.8149)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401862 #3A6218
analogous
#1B1862 #401862 #62185F
triadic
#401862 #624018 #186240
tetradic
#401862 #621B18 #3A6218 #185F62
square
#401862 #621B18 #3A6218 #185F62
split-complementary
#401862 #5F6218 #18621B
monochromatic
#100619 #200C31 #401862 #602493 #8030C4

Accessibility & contrast

On white

13.77
#401862 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#401862 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401862
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401862#FFFFFF#000000##FFFFFF
##4018621.0013.771.5313.77
#FFFFFF13.771.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C64
Deuteranopia (green-blind)
#002D60
Tritanopia (blue-blind)
#3A293B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #401862;
/* rgb */ color: rgb(64, 24, 98);
/* oklch */ color: oklch(31.2% 0.125 304.8);
Tailwind
colors: {
  custom: {
    50: '#78598f',
    500: '#401862',
    950: '#000000',
  },
}
SCSS
$custom: #401862;
$custom-light: #78598f;
$custom-dark: #000000;
JSON
{
  "hex": "#401862",
  "rgb": {
    "r": 64,
    "g": 24,
    "b": 98
  },
  "hsl": {
    "h": 272.432,
    "s": 60.656,
    "l": 23.922
  },
  "oklch": {
    "l": 0.31239,
    "c": 0.12452,
    "h": 304.8
  },
  "luminance": 0.02625
}

Semantic roles & 50–950 ramp

primary
#401862
secondary
#67983E
accent
#E4448D
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09040C
muted
#7B797D

Preview Lab

Preview with #401862

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

Preview Lab → · Contrast checker → · Palette generator →

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