#4025A4#4025A4

#4025A4 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.1% C 0.188 H 283.1°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#4025A4
RGBrgb(64, 37, 164)
HSLhsl(253, 63%, 39%)
HSVhsv(253, 77%, 64%)
CMYKcmyk(61%, 77.4%, 0%, 35.7%)
CIE-LABlab(27.00, 46.50, -63.65)
CIE-LCHlch(27.00, 78.82, 306.15°)
OKLaboklab(39.14% 0.0429 -0.1835)
OKLCHoklch(39.14% 0.188 283.1)
XYZxyz(9.4747, 5.0928, 35.5985)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4025A4 #89A425
analogous
#254AA4 #4025A4 #8025A4
triadic
#4025A4 #A44025 #25A440
tetradic
#4025A4 #A4254A #89A425 #25A480
square
#4025A4 #A4254A #89A425 #25A480
split-complementary
#4025A4 #A48025 #4AA425
monochromatic
#190E40 #2D1A72 #4025A4 #5635D1 #8067DD

Accessibility & contrast

On white

10.40
#4025A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4025A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4025A4
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4025A4#FFFFFF#000000##FFFFFF
##4025A41.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4025a4;
/* rgb */ color: rgb(64, 37, 164);
/* oklch */ color: oklch(39.1% 0.188 283.1);
Tailwind
colors: {
  custom: {
    50: '#8263c0',
    500: '#4025a4',
    950: '#000000',
  },
}
SCSS
$custom: #4025a4;
$custom-light: #8263c0;
$custom-dark: #000000;
JSON
{
  "hex": "#4025a4",
  "rgb": {
    "r": 64,
    "g": 37,
    "b": 164
  },
  "hsl": {
    "h": 252.756,
    "s": 63.184,
    "l": 39.412
  },
  "oklch": {
    "l": 0.3914,
    "c": 0.18844,
    "h": 283.1
  },
  "luminance": 0.05093
}

Semantic roles & 50–950 ramp

primary
#4025A4
secondary
#AEC262
accent
#E642C3
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4025A4

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

Preview Lab → · Contrast checker → · Palette generator →

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