#401262#401262

#401262 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.132 H 305.9°. Best body text is #FFFFFF at 14.18:1 contrast (WCAG AA passes).

Color values

HEX#401262
RGBrgb(64, 18, 98)
HSLhsl(275, 69%, 23%)
HSVhsv(275, 82%, 38%)
CMYKcmyk(34.7%, 81.6%, 0%, 61.6%)
CIE-LABlab(17.48, 37.03, -37.57)
CIE-LCHlch(17.48, 52.75, 314.59°)
OKLaboklab(30.54% 0.0775 -0.1069)
OKLCHoklch(30.54% 0.132 305.9)
XYZxyz(4.5348, 2.4045, 11.7781)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401262 #346212
analogous
#181262 #401262 #62125C
triadic
#401262 #624012 #126240
tetradic
#401262 #621812 #346212 #125C62
square
#401262 #621812 #346212 #125C62
split-complementary
#401262 #5C6212 #126218
monochromatic
#11051A #1E092E #401262 #621B96 #8425C9

Accessibility & contrast

On white

14.18
#401262 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#401262 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401262
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401262#FFFFFF#000000##FFFFFF
##4012621.0014.181.4814.18
#FFFFFF14.181.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A64
Deuteranopia (green-blind)
#002B60
Tritanopia (blue-blind)
#3A2639
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #401262;
/* rgb */ color: rgb(64, 18, 98);
/* oklch */ color: oklch(30.5% 0.132 305.9);
Tailwind
colors: {
  custom: {
    50: '#79568f',
    500: '#401262',
    950: '#000000',
  },
}
SCSS
$custom: #401262;
$custom-light: #79568f;
$custom-dark: #000000;
JSON
{
  "hex": "#401262",
  "rgb": {
    "r": 64,
    "g": 18,
    "b": 98
  },
  "hsl": {
    "h": 274.5,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.30537,
    "c": 0.13203,
    "h": 305.9
  },
  "luminance": 0.02404
}

Semantic roles & 50–950 ramp

primary
#401262
secondary
#609A36
accent
#EC3C87
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #401262

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

Preview Lab → · Contrast checker → · Palette generator →

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