#4027A3#4027A3

#4027A3 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.3% C 0.185 H 283.0°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#4027A3
RGBrgb(64, 39, 163)
HSLhsl(252, 61%, 40%)
HSVhsv(252, 76%, 64%)
CMYKcmyk(60.7%, 76.1%, 0%, 36.1%)
CIE-LABlab(27.25, 45.18, -62.62)
CIE-LCHlch(27.25, 77.22, 305.81°)
OKLaboklab(39.29% 0.0418 -0.1805)
OKLCHoklch(39.29% 0.185 283)
XYZxyz(9.4487, 5.1847, 35.1461)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4027A3 #8AA327
analogous
#274CA3 #4027A3 #7E27A3
triadic
#4027A3 #A34027 #27A340
tetradic
#4027A3 #A3274C #8AA327 #27A37E
square
#4027A3 #A3274C #8AA327 #27A37E
split-complementary
#4027A3 #A37E27 #4CA327
monochromatic
#190F40 #2D1B72 #4027A3 #5638CF #8069DB

Accessibility & contrast

On white

10.31
#4027A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4027A3
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4027A3#FFFFFF#000000##FFFFFF
##4027A31.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4027a3;
/* rgb */ color: rgb(64, 39, 163);
/* oklch */ color: oklch(39.3% 0.185 283.0);
Tailwind
colors: {
  custom: {
    50: '#8164bf',
    500: '#4027a3',
    950: '#000000',
  },
}
SCSS
$custom: #4027a3;
$custom-light: #8164bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4027a3",
  "rgb": {
    "r": 64,
    "g": 39,
    "b": 163
  },
  "hsl": {
    "h": 252.097,
    "s": 61.386,
    "l": 39.608
  },
  "oklch": {
    "l": 0.3929,
    "c": 0.18528,
    "h": 283
  },
  "luminance": 0.05185
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4027A3

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

Preview Lab → · Contrast checker → · Palette generator →

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