#4D25A4#4D25A4

#4D25A4 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.4% C 0.187 H 289.6°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#4D25A4
RGBrgb(77, 37, 164)
HSLhsl(259, 63%, 39%)
HSVhsv(259, 77%, 64%)
CMYKcmyk(53%, 77.4%, 0%, 35.7%)
CIE-LABlab(28.33, 48.24, -61.41)
CIE-LCHlch(28.33, 78.09, 308.15°)
OKLaboklab(40.39% 0.0627 -0.1765)
OKLCHoklch(40.39% 0.187 289.6)
XYZxyz(10.4210, 5.5808, 35.6429)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D25A4 #7CA425
analogous
#253CA4 #4D25A4 #8D25A4
triadic
#4D25A4 #A44D25 #25A44D
tetradic
#4D25A4 #A4253C #7CA425 #25A48D
square
#4D25A4 #A4253C #7CA425 #25A48D
split-complementary
#4D25A4 #A48D25 #3CA425
monochromatic
#1E0E40 #361A72 #4D25A4 #6635D1 #8C67DD

Accessibility & contrast

On white

9.92
#4D25A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#4D25A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D25A4
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D25A4#FFFFFF#000000##FFFFFF
##4D25A41.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A8
Deuteranopia (green-blind)
#0040A2
Tritanopia (blue-blind)
#2C4963
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4d25a4;
/* rgb */ color: rgb(77, 37, 164);
/* oklch */ color: oklch(40.4% 0.187 289.6);
Tailwind
colors: {
  custom: {
    50: '#8864c0',
    500: '#4d25a4',
    950: '#000000',
  },
}
SCSS
$custom: #4d25a4;
$custom-light: #8864c0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d25a4",
  "rgb": {
    "r": 77,
    "g": 37,
    "b": 164
  },
  "hsl": {
    "h": 258.898,
    "s": 63.184,
    "l": 39.412
  },
  "oklch": {
    "l": 0.40389,
    "c": 0.18734,
    "h": 289.6
  },
  "luminance": 0.05581
}

Semantic roles & 50–950 ramp

primary
#4D25A4
secondary
#A4C262
accent
#E642B2
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #4D25A4

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

Preview Lab → · Contrast checker → · Palette generator →

#4D25A4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva