#4025A2#4025A2

#4025A2 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.9% C 0.186 H 283.5°. Best body text is #FFFFFF at 10.48:1 contrast (WCAG AA passes).

Color values

HEX#4025A2
RGBrgb(64, 37, 162)
HSLhsl(253, 63%, 39%)
HSVhsv(253, 77%, 64%)
CMYKcmyk(60.5%, 77.2%, 0%, 36.5%)
CIE-LABlab(26.79, 45.90, -62.77)
CIE-LCHlch(26.79, 77.76, 306.18°)
OKLaboklab(38.94% 0.0434 -0.1809)
OKLCHoklch(38.94% 0.186 283.5)
XYZxyz(9.2955, 5.0211, 34.6548)
Luminance0.0502 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4025A2 #87A225
analogous
#2549A2 #4025A2 #7F25A2
triadic
#4025A2 #A24025 #25A240
tetradic
#4025A2 #A22549 #87A225 #25A27F
square
#4025A2 #A22549 #87A225 #25A27F
split-complementary
#4025A2 #A27F25 #49A225
monochromatic
#190E3E #2C1A70 #4025A2 #5634D1 #7F65DC

Accessibility & contrast

On white

10.48
#4025A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#4025A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4025A2
10.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4025A2#FFFFFF#000000##FFFFFF
##4025A21.0010.482.0010.48
#FFFFFF10.481.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A6
Deuteranopia (green-blind)
#003BA0
Tritanopia (blue-blind)
#004962
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4025a2;
/* rgb */ color: rgb(64, 37, 162);
/* oklch */ color: oklch(38.9% 0.186 283.5);
Tailwind
colors: {
  custom: {
    50: '#8163bf',
    500: '#4025a2',
    950: '#000000',
  },
}
SCSS
$custom: #4025a2;
$custom-light: #8163bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4025a2",
  "rgb": {
    "r": 64,
    "g": 37,
    "b": 162
  },
  "hsl": {
    "h": 252.96,
    "s": 62.814,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38937,
    "c": 0.18606,
    "h": 283.5
  },
  "luminance": 0.05022
}

Semantic roles & 50–950 ramp

primary
#4025A2
secondary
#ADC261
accent
#E642C2
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4025A2

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

Preview Lab → · Contrast checker → · Palette generator →

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