#4027A9#4027A9

#4027A9 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.9% C 0.192 H 282.1°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#4027A9
RGBrgb(64, 39, 169)
HSLhsl(252, 63%, 41%)
HSVhsv(252, 77%, 66%)
CMYKcmyk(62.1%, 76.9%, 0%, 33.7%)
CIE-LABlab(27.86, 46.99, -65.25)
CIE-LCHlch(27.86, 80.41, 305.76°)
OKLaboklab(39.9% 0.0402 -0.1882)
OKLCHoklch(39.9% 0.192 282.1)
XYZxyz(9.9991, 5.4049, 38.0448)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4027A9 #90A927
analogous
#274FA9 #4027A9 #8127A9
triadic
#4027A9 #A94027 #27A940
tetradic
#4027A9 #A9274F #90A927 #27A981
square
#4027A9 #A9274F #90A927 #27A981
split-complementary
#4027A9 #A98127 #4FA927
monochromatic
#1A1046 #2D1C77 #4027A9 #583BD2 #836DDD

Accessibility & contrast

On white

10.09
#4027A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#4027A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4027A9
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4027A9#FFFFFF#000000##FFFFFF
##4027A91.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AD
Deuteranopia (green-blind)
#003DA7
Tritanopia (blue-blind)
#004D67
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4027a9;
/* rgb */ color: rgb(64, 39, 169);
/* oklch */ color: oklch(39.9% 0.192 282.1);
Tailwind
colors: {
  custom: {
    50: '#8265c4',
    500: '#4027a9',
    950: '#000000',
  },
}
SCSS
$custom: #4027a9;
$custom-light: #8265c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4027a9",
  "rgb": {
    "r": 64,
    "g": 39,
    "b": 169
  },
  "hsl": {
    "h": 251.538,
    "s": 62.5,
    "l": 40.784
  },
  "oklch": {
    "l": 0.39896,
    "c": 0.19243,
    "h": 282.1
  },
  "luminance": 0.05406
}

Semantic roles & 50–950 ramp

primary
#4027A9
secondary
#B2C468
accent
#E642C6
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4027A9

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

Preview Lab → · Contrast checker → · Palette generator →

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