#4D25A2#4D25A2

#4D25A2 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.2% C 0.185 H 290.0°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#4D25A2
RGBrgb(77, 37, 162)
HSLhsl(259, 63%, 39%)
HSVhsv(259, 77%, 64%)
CMYKcmyk(52.5%, 77.2%, 0%, 36.5%)
CIE-LABlab(28.14, 47.68, -60.51)
CIE-LCHlch(28.14, 77.04, 308.24°)
OKLaboklab(40.2% 0.0633 -0.1739)
OKLCHoklch(40.2% 0.185 290)
XYZxyz(10.2418, 5.5091, 34.6991)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D25A2 #7AA225
analogous
#253CA2 #4D25A2 #8C25A2
triadic
#4D25A2 #A24D25 #25A24D
tetradic
#4D25A2 #A2253C #7AA225 #25A28C
square
#4D25A2 #A2253C #7AA225 #25A28C
split-complementary
#4D25A2 #A28C25 #3CA225
monochromatic
#1E0E3E #351A70 #4D25A2 #6634D1 #8B65DC

Accessibility & contrast

On white

9.99
#4D25A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#4D25A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D25A2
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D25A2#FFFFFF#000000##FFFFFF
##4D25A21.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A6
Deuteranopia (green-blind)
#003FA0
Tritanopia (blue-blind)
#2E4862
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4d25a2;
/* rgb */ color: rgb(77, 37, 162);
/* oklch */ color: oklch(40.2% 0.185 290.0);
Tailwind
colors: {
  custom: {
    50: '#8864bf',
    500: '#4d25a2',
    950: '#000000',
  },
}
SCSS
$custom: #4d25a2;
$custom-light: #8864bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4d25a2",
  "rgb": {
    "r": 77,
    "g": 37,
    "b": 162
  },
  "hsl": {
    "h": 259.2,
    "s": 62.814,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40198,
    "c": 0.18506,
    "h": 290
  },
  "luminance": 0.0551
}

Semantic roles & 50–950 ramp

primary
#4D25A2
secondary
#A3C261
accent
#E642B1
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4D25A2

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

Preview Lab → · Contrast checker → · Palette generator →

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