#401272#401272

#401272 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 32.0% C 0.149 H 299.1°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#401272
RGBrgb(64, 18, 114)
HSLhsl(269, 73%, 26%)
HSVhsv(269, 84%, 45%)
CMYKcmyk(43.9%, 84.2%, 0%, 55.3%)
CIE-LABlab(18.96, 41.13, -45.62)
CIE-LCHlch(18.96, 61.43, 312.04°)
OKLaboklab(32.03% 0.0726 -0.1306)
OKLCHoklch(32.03% 0.149 299.1)
XYZxyz(5.3671, 2.7374, 16.1619)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401272 #447212
analogous
#121472 #401272 #701272
triadic
#401272 #724012 #127240
tetradic
#401272 #721214 #447212 #127270
square
#401272 #721214 #447212 #127270
split-complementary
#401272 #727012 #147212
monochromatic
#0F041A #220A3D #401272 #5E1AA7 #7B23DC

Accessibility & contrast

On white

13.57
#401272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401272
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401272#FFFFFF#000000##FFFFFF
##4012721.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E75
Deuteranopia (green-blind)
#002D70
Tritanopia (blue-blind)
#342D43
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #401272;
/* rgb */ color: rgb(64, 18, 114);
/* oklch */ color: oklch(32.0% 0.149 299.1);
Tailwind
colors: {
  custom: {
    50: '#7b579b',
    500: '#401272',
    950: '#000000',
  },
}
SCSS
$custom: #401272;
$custom-light: #7b579b;
$custom-dark: #000000;
JSON
{
  "hex": "#401272",
  "rgb": {
    "r": 64,
    "g": 18,
    "b": 114
  },
  "hsl": {
    "h": 268.75,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.32026,
    "c": 0.1494,
    "h": 299.1
  },
  "luminance": 0.02738
}

Semantic roles & 50–950 ramp

primary
#401272
secondary
#72A937
accent
#EF3898
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #401272

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

Preview Lab → · Contrast checker → · Palette generator →

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