#4D25A6#4D25A6

#4D25A6 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.6% C 0.190 H 289.1°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#4D25A6
RGBrgb(77, 37, 166)
HSLhsl(259, 64%, 40%)
HSVhsv(259, 78%, 65%)
CMYKcmyk(53.6%, 77.7%, 0%, 34.9%)
CIE-LABlab(28.52, 48.79, -62.30)
CIE-LCHlch(28.52, 79.14, 308.07°)
OKLaboklab(40.58% 0.0621 -0.1791)
OKLCHoklch(40.58% 0.19 289.1)
XYZxyz(10.6031, 5.6536, 36.6016)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D25A6 #7EA625
analogous
#253DA6 #4D25A6 #8E25A6
triadic
#4D25A6 #A64D25 #25A64D
tetradic
#4D25A6 #A6253D #7EA625 #25A68E
square
#4D25A6 #A6253D #7EA625 #25A68E
split-complementary
#4D25A6 #A68E25 #3DA625
monochromatic
#1F0F42 #361A74 #4D25A6 #6636D2 #8C68DD

Accessibility & contrast

On white

9.86
#4D25A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#4D25A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D25A6
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D25A6#FFFFFF#000000##FFFFFF
##4D25A61.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AA
Deuteranopia (green-blind)
#0040A4
Tritanopia (blue-blind)
#2A4A65
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4d25a6;
/* rgb */ color: rgb(77, 37, 166);
/* oklch */ color: oklch(40.6% 0.190 289.1);
Tailwind
colors: {
  custom: {
    50: '#8965c2',
    500: '#4d25a6',
    950: '#000000',
  },
}
SCSS
$custom: #4d25a6;
$custom-light: #8965c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4d25a6",
  "rgb": {
    "r": 77,
    "g": 37,
    "b": 166
  },
  "hsl": {
    "h": 258.605,
    "s": 63.547,
    "l": 39.804
  },
  "oklch": {
    "l": 0.40581,
    "c": 0.18962,
    "h": 289.1
  },
  "luminance": 0.05654
}

Semantic roles & 50–950 ramp

primary
#4D25A6
secondary
#A6C364
accent
#E741B3
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #4D25A6

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

Preview Lab → · Contrast checker → · Palette generator →

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