#4025AC#4025AC

#4025AC is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.0% C 0.198 H 281.8°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#4025AC
RGBrgb(64, 37, 172)
HSLhsl(252, 65%, 41%)
HSVhsv(252, 78%, 67%)
CMYKcmyk(62.8%, 78.5%, 0%, 32.5%)
CIE-LABlab(27.82, 48.88, -67.12)
CIE-LCHlch(27.82, 83.03, 306.06°)
OKLaboklab(39.96% 0.0406 -0.1936)
OKLCHoklch(39.96% 0.198 281.8)
XYZxyz(10.2200, 5.3909, 39.5237)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4025AC #91AC25
analogous
#254DAC #4025AC #8325AC
triadic
#4025AC #AC4025 #25AC40
tetradic
#4025AC #AC254D #91AC25 #25AC83
square
#4025AC #AC254D #91AC25 #25AC83
split-complementary
#4025AC #AC8325 #4DAC25
monochromatic
#1B0F47 #2D1A7A #4025AC #593AD5 #836CDF

Accessibility & contrast

On white

10.10
#4025AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#4025AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4025AC
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4025AC#FFFFFF#000000##FFFFFF
##4025AC1.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B0
Deuteranopia (green-blind)
#003DAA
Tritanopia (blue-blind)
#004D68
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4025ac;
/* rgb */ color: rgb(64, 37, 172);
/* oklch */ color: oklch(40.0% 0.198 281.8);
Tailwind
colors: {
  custom: {
    50: '#8364c6',
    500: '#4025ac',
    950: '#000000',
  },
}
SCSS
$custom: #4025ac;
$custom-light: #8364c6;
$custom-dark: #000000;
JSON
{
  "hex": "#4025ac",
  "rgb": {
    "r": 64,
    "g": 37,
    "b": 172
  },
  "hsl": {
    "h": 252,
    "s": 64.593,
    "l": 40.98
  },
  "oklch": {
    "l": 0.39961,
    "c": 0.19783,
    "h": 281.8
  },
  "luminance": 0.05392
}

Semantic roles & 50–950 ramp

primary
#4025AC
secondary
#B3C667
accent
#E840C6
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4025AC

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

Preview Lab → · Contrast checker → · Palette generator →

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