#4025A7#4025A7

#4025A7 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.4% C 0.192 H 282.6°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#4025A7
RGBrgb(64, 37, 167)
HSLhsl(252, 64%, 40%)
HSVhsv(252, 78%, 65%)
CMYKcmyk(61.7%, 77.8%, 0%, 34.5%)
CIE-LABlab(27.30, 47.39, -64.96)
CIE-LCHlch(27.30, 80.41, 306.12°)
OKLaboklab(39.45% 0.042 -0.1873)
OKLCHoklch(39.45% 0.192 282.6)
XYZxyz(9.7488, 5.2025, 37.0422)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4025A7 #8CA725
analogous
#254BA7 #4025A7 #8125A7
triadic
#4025A7 #A74025 #25A740
tetradic
#4025A7 #A7254B #8CA725 #25A781
square
#4025A7 #A7254B #8CA725 #25A781
split-complementary
#4025A7 #A78125 #4BA725
monochromatic
#1A0F43 #2D1A75 #4025A7 #5737D3 #8169DE

Accessibility & contrast

On white

10.29
#4025A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4025A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4025A7
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4025A7#FFFFFF#000000##FFFFFF
##4025A71.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AB
Deuteranopia (green-blind)
#003CA5
Tritanopia (blue-blind)
#004B65
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4025a7;
/* rgb */ color: rgb(64, 37, 167);
/* oklch */ color: oklch(39.4% 0.192 282.6);
Tailwind
colors: {
  custom: {
    50: '#8264c2',
    500: '#4025a7',
    950: '#000000',
  },
}
SCSS
$custom: #4025a7;
$custom-light: #8264c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4025a7",
  "rgb": {
    "r": 64,
    "g": 37,
    "b": 167
  },
  "hsl": {
    "h": 252.462,
    "s": 63.725,
    "l": 40
  },
  "oklch": {
    "l": 0.39446,
    "c": 0.19198,
    "h": 282.6
  },
  "luminance": 0.05203
}

Semantic roles & 50–950 ramp

primary
#4025A7
secondary
#B0C464
accent
#E741C4
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4025A7

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

Preview Lab → · Contrast checker → · Palette generator →

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