#4D25A3#4D25A3

#4D25A3 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.3% C 0.186 H 289.8°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#4D25A3
RGBrgb(77, 37, 163)
HSLhsl(259, 63%, 39%)
HSVhsv(259, 77%, 64%)
CMYKcmyk(52.8%, 77.3%, 0%, 36.1%)
CIE-LABlab(28.23, 47.96, -60.96)
CIE-LCHlch(28.23, 77.56, 308.19°)
OKLaboklab(40.29% 0.063 -0.1752)
OKLCHoklch(40.29% 0.186 289.8)
XYZxyz(10.3311, 5.5448, 35.1691)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D25A3 #7BA325
analogous
#253CA3 #4D25A3 #8C25A3
triadic
#4D25A3 #A34D25 #25A34D
tetradic
#4D25A3 #A3253C #7BA325 #25A38C
square
#4D25A3 #A3253C #7BA325 #25A38C
split-complementary
#4D25A3 #A38C25 #3CA325
monochromatic
#1E0E3F #351A71 #4D25A3 #6634D1 #8C66DC

Accessibility & contrast

On white

9.96
#4D25A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#4D25A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D25A3
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D25A3#FFFFFF#000000##FFFFFF
##4D25A31.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A7
Deuteranopia (green-blind)
#0040A1
Tritanopia (blue-blind)
#2D4863
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4d25a3;
/* rgb */ color: rgb(77, 37, 163);
/* oklch */ color: oklch(40.3% 0.186 289.8);
Tailwind
colors: {
  custom: {
    50: '#8864bf',
    500: '#4d25a3',
    950: '#000000',
  },
}
SCSS
$custom: #4d25a3;
$custom-light: #8864bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4d25a3",
  "rgb": {
    "r": 77,
    "g": 37,
    "b": 163
  },
  "hsl": {
    "h": 259.048,
    "s": 63,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40293,
    "c": 0.1862,
    "h": 289.8
  },
  "luminance": 0.05545
}

Semantic roles & 50–950 ramp

primary
#4D25A3
secondary
#A3C262
accent
#E642B2
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4D25A3

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

Preview Lab → · Contrast checker → · Palette generator →

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