#401273#401273

#401273 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.150 H 298.7°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).

Color values

HEX#401273
RGBrgb(64, 18, 115)
HSLhsl(268, 73%, 26%)
HSVhsv(268, 84%, 45%)
CMYKcmyk(44.3%, 84.3%, 0%, 54.9%)
CIE-LABlab(19.06, 41.40, -46.11)
CIE-LCHlch(19.06, 61.96, 311.92°)
OKLaboklab(32.12% 0.0723 -0.132)
OKLCHoklch(32.12% 0.15 298.7)
XYZxyz(5.4244, 2.7603, 16.4633)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401273 #457312
analogous
#121473 #401273 #701273
triadic
#401273 #734012 #127340
tetradic
#401273 #731214 #457312 #127370
square
#401273 #731214 #457312 #127370
split-complementary
#401273 #737012 #147312
monochromatic
#0F041A #230A3E #401273 #5D1AA8 #7B23DD

Accessibility & contrast

On white

13.53
#401273 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#401273 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401273
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401273#FFFFFF#000000##FFFFFF
##4012731.0013.531.5513.53
#FFFFFF13.531.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E76
Deuteranopia (green-blind)
#002D71
Tritanopia (blue-blind)
#332E43
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #401273;
/* rgb */ color: rgb(64, 18, 115);
/* oklch */ color: oklch(32.1% 0.150 298.7);
Tailwind
colors: {
  custom: {
    50: '#7b579c',
    500: '#401273',
    950: '#000000',
  },
}
SCSS
$custom: #401273;
$custom-light: #7b579c;
$custom-dark: #000000;
JSON
{
  "hex": "#401273",
  "rgb": {
    "r": 64,
    "g": 18,
    "b": 115
  },
  "hsl": {
    "h": 268.454,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.32123,
    "c": 0.15048,
    "h": 298.7
  },
  "luminance": 0.0276
}

Semantic roles & 50–950 ramp

primary
#401273
secondary
#73AA37
accent
#F03899
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #401273

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

Preview Lab → · Contrast checker → · Palette generator →

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