#401267#401267

#401267 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.137 H 303.6°. Best body text is #FFFFFF at 14.00:1 contrast (WCAG AA passes).

Color values

HEX#401267
RGBrgb(64, 18, 103)
HSLhsl(272, 70%, 24%)
HSVhsv(272, 83%, 40%)
CMYKcmyk(37.9%, 82.5%, 0%, 59.6%)
CIE-LABlab(17.93, 38.30, -40.14)
CIE-LCHlch(17.93, 55.48, 313.66°)
OKLaboklab(30.99% 0.0761 -0.1145)
OKLCHoklch(30.99% 0.137 303.6)
XYZxyz(4.7783, 2.5019, 13.0605)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401267 #396712
analogous
#161267 #401267 #671263
triadic
#401267 #674012 #126740
tetradic
#401267 #671612 #396712 #126367
square
#401267 #671612 #396712 #126367
split-complementary
#401267 #636712 #126716
monochromatic
#10051A #200933 #401267 #601B9B #8124CF

Accessibility & contrast

On white

14.00
#401267 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#401267 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401267
14.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401267#FFFFFF#000000##FFFFFF
##4012671.0014.001.5014.00
#FFFFFF14.001.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B69
Deuteranopia (green-blind)
#002C65
Tritanopia (blue-blind)
#38283C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #401267;
/* rgb */ color: rgb(64, 18, 103);
/* oklch */ color: oklch(31.0% 0.137 303.6);
Tailwind
colors: {
  custom: {
    50: '#795693',
    500: '#401267',
    950: '#000000',
  },
}
SCSS
$custom: #401267;
$custom-light: #795693;
$custom-dark: #000000;
JSON
{
  "hex": "#401267",
  "rgb": {
    "r": 64,
    "g": 18,
    "b": 103
  },
  "hsl": {
    "h": 272.471,
    "s": 70.248,
    "l": 23.725
  },
  "oklch": {
    "l": 0.30988,
    "c": 0.13746,
    "h": 303.6
  },
  "luminance": 0.02502
}

Semantic roles & 50–950 ramp

primary
#401267
secondary
#669F36
accent
#ED3B8D
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#0A030D
muted
#7C787E

Preview Lab

Preview with #401267

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

Preview Lab → · Contrast checker → · Palette generator →

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