#401265#401265

#401265 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.135 H 304.5°. Best body text is #FFFFFF at 14.07:1 contrast (WCAG AA passes).

Color values

HEX#401265
RGBrgb(64, 18, 101)
HSLhsl(273, 70%, 23%)
HSVhsv(273, 82%, 40%)
CMYKcmyk(36.6%, 82.2%, 0%, 60.4%)
CIE-LABlab(17.75, 37.79, -39.12)
CIE-LCHlch(17.75, 54.39, 314.01°)
OKLaboklab(30.81% 0.0767 -0.1115)
OKLCHoklch(30.81% 0.135 304.5)
XYZxyz(4.6791, 2.4622, 12.5381)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401265 #376512
analogous
#161265 #401265 #651260
triadic
#401265 #654012 #126540
tetradic
#401265 #651612 #376512 #126065
square
#401265 #651612 #376512 #126065
split-complementary
#401265 #606512 #126516
monochromatic
#10051A #1F0931 #401265 #611B99 #8225CD

Accessibility & contrast

On white

14.07
#401265 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#401265 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401265
14.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401265#FFFFFF#000000##FFFFFF
##4012651.0014.071.4914.07
#FFFFFF14.071.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A67
Deuteranopia (green-blind)
#002B63
Tritanopia (blue-blind)
#39283B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #401265;
/* rgb */ color: rgb(64, 18, 101);
/* oklch */ color: oklch(30.8% 0.135 304.5);
Tailwind
colors: {
  custom: {
    50: '#795692',
    500: '#401265',
    950: '#000000',
  },
}
SCSS
$custom: #401265;
$custom-light: #795692;
$custom-dark: #000000;
JSON
{
  "hex": "#401265",
  "rgb": {
    "r": 64,
    "g": 18,
    "b": 101
  },
  "hsl": {
    "h": 273.253,
    "s": 69.748,
    "l": 23.333
  },
  "oklch": {
    "l": 0.30806,
    "c": 0.13529,
    "h": 304.5
  },
  "luminance": 0.02462
}

Semantic roles & 50–950 ramp

primary
#401265
secondary
#649D36
accent
#ED3B8A
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #401265

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

Preview Lab → · Contrast checker → · Palette generator →

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