#401263#401263

#401263 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.133 H 305.4°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#401263
RGBrgb(64, 18, 99)
HSLhsl(274, 69%, 23%)
HSVhsv(274, 82%, 39%)
CMYKcmyk(35.4%, 81.8%, 0%, 61.2%)
CIE-LABlab(17.57, 37.28, -38.09)
CIE-LCHlch(17.57, 53.30, 314.39°)
OKLaboklab(30.63% 0.0772 -0.1084)
OKLCHoklch(30.63% 0.133 305.4)
XYZxyz(4.5823, 2.4235, 12.0283)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401263 #356312
analogous
#171263 #401263 #63125D
triadic
#401263 #634012 #126340
tetradic
#401263 #631712 #356312 #125D63
square
#401263 #631712 #356312 #125D63
split-complementary
#401263 #5D6312 #126317
monochromatic
#11051A #1F092F #401263 #611B97 #8325CB

Accessibility & contrast

On white

14.15
#401263 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401263
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401263#FFFFFF#000000##FFFFFF
##4012631.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A65
Deuteranopia (green-blind)
#002B61
Tritanopia (blue-blind)
#39273A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #401263;
/* rgb */ color: rgb(64, 18, 99);
/* oklch */ color: oklch(30.6% 0.133 305.4);
Tailwind
colors: {
  custom: {
    50: '#795690',
    500: '#401263',
    950: '#000000',
  },
}
SCSS
$custom: #401263;
$custom-light: #795690;
$custom-dark: #000000;
JSON
{
  "hex": "#401263",
  "rgb": {
    "r": 64,
    "g": 18,
    "b": 99
  },
  "hsl": {
    "h": 274.074,
    "s": 69.231,
    "l": 22.941
  },
  "oklch": {
    "l": 0.30626,
    "c": 0.13311,
    "h": 305.4
  },
  "luminance": 0.02423
}

Semantic roles & 50–950 ramp

primary
#401263
secondary
#629B36
accent
#EC3C88
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #401263

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

Preview Lab → · Contrast checker → · Palette generator →

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