#4026A5#4026A5

#4026A5 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.4% C 0.189 H 282.8°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#4026A5
RGBrgb(64, 38, 165)
HSLhsl(252, 63%, 40%)
HSVhsv(252, 77%, 65%)
CMYKcmyk(61.2%, 77%, 0%, 35.3%)
CIE-LABlab(27.28, 46.30, -63.79)
CIE-LCHlch(27.28, 78.82, 305.97°)
OKLaboklab(39.37% 0.0419 -0.1839)
OKLCHoklch(39.37% 0.189 282.8)
XYZxyz(9.5969, 5.1922, 36.0865)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4026A5 #8BA526
analogous
#264CA5 #4026A5 #7F26A5
triadic
#4026A5 #A54026 #26A540
tetradic
#4026A5 #A5264C #8BA526 #26A57F
square
#4026A5 #A5264C #8BA526 #26A57F
split-complementary
#4026A5 #A57F26 #4CA526
monochromatic
#190F42 #2D1B73 #4026A5 #5737D1 #8169DC

Accessibility & contrast

On white

10.30
#4026A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4026A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4026A5
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4026A5#FFFFFF#000000##FFFFFF
##4026A51.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A9
Deuteranopia (green-blind)
#003CA3
Tritanopia (blue-blind)
#004B64
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4026a5;
/* rgb */ color: rgb(64, 38, 165);
/* oklch */ color: oklch(39.4% 0.189 282.8);
Tailwind
colors: {
  custom: {
    50: '#8264c1',
    500: '#4026a5',
    950: '#000000',
  },
}
SCSS
$custom: #4026a5;
$custom-light: #8264c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4026a5",
  "rgb": {
    "r": 64,
    "g": 38,
    "b": 165
  },
  "hsl": {
    "h": 252.283,
    "s": 62.562,
    "l": 39.804
  },
  "oklch": {
    "l": 0.39365,
    "c": 0.18866,
    "h": 282.8
  },
  "luminance": 0.05193
}

Semantic roles & 50–950 ramp

primary
#4026A5
secondary
#AFC364
accent
#E642C4
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4026A5

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

Preview Lab → · Contrast checker → · Palette generator →

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