#4026AE#4026AE

#4026AE is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.3% C 0.199 H 281.4°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#4026AE
RGBrgb(64, 38, 174)
HSLhsl(251, 64%, 42%)
HSVhsv(251, 78%, 68%)
CMYKcmyk(63.2%, 78.2%, 0%, 31.8%)
CIE-LABlab(28.20, 48.98, -67.69)
CIE-LCHlch(28.20, 83.56, 305.89°)
OKLaboklab(40.29% 0.0394 -0.1953)
OKLCHoklch(40.29% 0.199 281.4)
XYZxyz(10.4450, 5.5314, 40.5534)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4026AE #94AE26
analogous
#2650AE #4026AE #8426AE
triadic
#4026AE #AE4026 #26AE40
tetradic
#4026AE #AE2650 #94AE26 #26AE84
square
#4026AE #AE2650 #94AE26 #26AE84
split-complementary
#4026AE #AE8426 #50AE26
monochromatic
#1B104A #2E1B7C #4026AE #5A3DD5 #846FE0

Accessibility & contrast

On white

9.97
#4026AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#4026AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4026AE
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4026AE#FFFFFF#000000##FFFFFF
##4026AE1.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B2
Deuteranopia (green-blind)
#003EAC
Tritanopia (blue-blind)
#004E69
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4026ae;
/* rgb */ color: rgb(64, 38, 174);
/* oklch */ color: oklch(40.3% 0.199 281.4);
Tailwind
colors: {
  custom: {
    50: '#8364c7',
    500: '#4026ae',
    950: '#000000',
  },
}
SCSS
$custom: #4026ae;
$custom-light: #8364c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4026ae",
  "rgb": {
    "r": 64,
    "g": 38,
    "b": 174
  },
  "hsl": {
    "h": 251.471,
    "s": 64.151,
    "l": 41.569
  },
  "oklch": {
    "l": 0.40287,
    "c": 0.19925,
    "h": 281.4
  },
  "luminance": 0.05532
}

Semantic roles & 50–950 ramp

primary
#4026AE
secondary
#B4C66A
accent
#E741C7
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4026AE

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

Preview Lab → · Contrast checker → · Palette generator →

#4026AE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva