#4027A4#4027A4

#4027A4 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.4% C 0.186 H 282.9°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#4027A4
RGBrgb(64, 39, 164)
HSLhsl(252, 62%, 40%)
HSVhsv(252, 76%, 64%)
CMYKcmyk(61%, 76.2%, 0%, 35.7%)
CIE-LABlab(27.35, 45.48, -63.06)
CIE-LCHlch(27.35, 77.75, 305.80°)
OKLaboklab(39.39% 0.0415 -0.1818)
OKLCHoklch(39.39% 0.186 282.9)
XYZxyz(9.5386, 5.2207, 35.6198)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4027A4 #8BA427
analogous
#274DA4 #4027A4 #7F27A4
triadic
#4027A4 #A44027 #27A440
tetradic
#4027A4 #A4274D #8BA427 #27A47F
square
#4027A4 #A4274D #8BA427 #27A47F
split-complementary
#4027A4 #A47F27 #4DA427
monochromatic
#190F41 #2D1B73 #4027A4 #5738D0 #816ADC

Accessibility & contrast

On white

10.27
#4027A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4027A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4027A4
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4027A4#FFFFFF#000000##FFFFFF
##4027A41.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A8
Deuteranopia (green-blind)
#003CA2
Tritanopia (blue-blind)
#004B64
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4027a4;
/* rgb */ color: rgb(64, 39, 164);
/* oklch */ color: oklch(39.4% 0.186 282.9);
Tailwind
colors: {
  custom: {
    50: '#8164c0',
    500: '#4027a4',
    950: '#000000',
  },
}
SCSS
$custom: #4027a4;
$custom-light: #8164c0;
$custom-dark: #000000;
JSON
{
  "hex": "#4027a4",
  "rgb": {
    "r": 64,
    "g": 39,
    "b": 164
  },
  "hsl": {
    "h": 252,
    "s": 61.576,
    "l": 39.804
  },
  "oklch": {
    "l": 0.3939,
    "c": 0.18648,
    "h": 282.9
  },
  "luminance": 0.05221
}

Semantic roles & 50–950 ramp

primary
#4027A4
secondary
#AFC265
accent
#E543C4
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4027A4

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

Preview Lab → · Contrast checker → · Palette generator →

#4027A4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva