#4027A2#4027A2

#4027A2 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.2% C 0.184 H 283.2°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#4027A2
RGBrgb(64, 39, 162)
HSLhsl(252, 61%, 39%)
HSVhsv(252, 76%, 64%)
CMYKcmyk(60.5%, 75.9%, 0%, 36.5%)
CIE-LABlab(27.16, 44.88, -62.17)
CIE-LCHlch(27.16, 76.68, 305.82°)
OKLaboklab(39.19% 0.042 -0.1792)
OKLCHoklch(39.19% 0.184 283.2)
XYZxyz(9.3594, 5.1490, 34.6761)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4027A2 #89A227
analogous
#274CA2 #4027A2 #7E27A2
triadic
#4027A2 #A24027 #27A240
tetradic
#4027A2 #A2274C #89A227 #27A27E
square
#4027A2 #A2274C #89A227 #27A27E
split-complementary
#4027A2 #A27E27 #4CA227
monochromatic
#190F3F #2D1B71 #4027A2 #5637CF #8069DB

Accessibility & contrast

On white

10.34
#4027A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4027A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4027A2
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4027A2#FFFFFF#000000##FFFFFF
##4027A21.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A6
Deuteranopia (green-blind)
#003CA0
Tritanopia (blue-blind)
#004A63
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4027a2;
/* rgb */ color: rgb(64, 39, 162);
/* oklch */ color: oklch(39.2% 0.184 283.2);
Tailwind
colors: {
  custom: {
    50: '#8164bf',
    500: '#4027a2',
    950: '#000000',
  },
}
SCSS
$custom: #4027a2;
$custom-light: #8164bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4027a2",
  "rgb": {
    "r": 64,
    "g": 39,
    "b": 162
  },
  "hsl": {
    "h": 252.195,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.3919,
    "c": 0.18407,
    "h": 283.2
  },
  "luminance": 0.0515
}

Semantic roles & 50–950 ramp

primary
#4027A2
secondary
#AEC164
accent
#E443C4
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4027A2

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

Preview Lab → · Contrast checker → · Palette generator →

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