#4027AC#4027AC

#4027AC is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.2% C 0.196 H 281.6°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#4027AC
RGBrgb(64, 39, 172)
HSLhsl(251, 63%, 41%)
HSVhsv(251, 77%, 67%)
CMYKcmyk(62.8%, 77.3%, 0%, 32.5%)
CIE-LABlab(28.16, 47.89, -66.55)
CIE-LCHlch(28.16, 81.99, 305.74°)
OKLaboklab(40.2% 0.0394 -0.192)
OKLCHoklch(40.2% 0.196 281.6)
XYZxyz(10.2839, 5.5188, 39.5450)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4027AC #93AC27
analogous
#2751AC #4027AC #8327AC
triadic
#4027AC #AC4027 #27AC40
tetradic
#4027AC #AC2751 #93AC27 #27AC83
square
#4027AC #AC2751 #93AC27 #27AC83
split-complementary
#4027AC #AC8327 #51AC27
monochromatic
#1B1048 #2D1C7A #4027AC #593DD3 #846FDE

Accessibility & contrast

On white

9.98
#4027AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#4027AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4027AC
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4027AC#FFFFFF#000000##FFFFFF
##4027AC1.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B0
Deuteranopia (green-blind)
#003EAA
Tritanopia (blue-blind)
#004E68
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4027ac;
/* rgb */ color: rgb(64, 39, 172);
/* oklch */ color: oklch(40.2% 0.196 281.6);
Tailwind
colors: {
  custom: {
    50: '#8365c6',
    500: '#4027ac',
    950: '#000000',
  },
}
SCSS
$custom: #4027ac;
$custom-light: #8365c6;
$custom-dark: #000000;
JSON
{
  "hex": "#4027ac",
  "rgb": {
    "r": 64,
    "g": 39,
    "b": 172
  },
  "hsl": {
    "h": 251.278,
    "s": 63.033,
    "l": 41.373
  },
  "oklch": {
    "l": 0.40202,
    "c": 0.19599,
    "h": 281.6
  },
  "luminance": 0.0552
}

Semantic roles & 50–950 ramp

primary
#4027AC
secondary
#B4C56A
accent
#E642C7
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4027AC

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

Preview Lab → · Contrast checker → · Palette generator →

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