#4C25A4#4C25A4

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

Color values

HEX#4C25A4
RGBrgb(76, 37, 164)
HSLhsl(258, 63%, 39%)
HSVhsv(258, 77%, 64%)
CMYKcmyk(53.7%, 77.4%, 0%, 35.7%)
CIE-LABlab(28.22, 48.09, -61.59)
CIE-LCHlch(28.22, 78.14, 307.98°)
OKLaboklab(40.29% 0.0612 -0.1771)
OKLCHoklch(40.29% 0.187 289.1)
XYZxyz(10.3409, 5.5395, 35.6391)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C25A4 #7DA425
analogous
#253EA4 #4C25A4 #8C25A4
triadic
#4C25A4 #A44C25 #25A44C
tetradic
#4C25A4 #A4253E #7DA425 #25A48C
square
#4C25A4 #A4253E #7DA425 #25A48C
split-complementary
#4C25A4 #A48C25 #3EA425
monochromatic
#1E0E40 #351A72 #4C25A4 #6535D1 #8B67DD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4C25A4#FFFFFF#000000##FFFFFF
##4C25A41.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)
#0045A8
Deuteranopia (green-blind)
#003FA2
Tritanopia (blue-blind)
#2A4963
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4c25a4;
/* rgb */ color: rgb(76, 37, 164);
/* oklch */ color: oklch(40.3% 0.187 289.1);
Tailwind
colors: {
  custom: {
    50: '#8864c0',
    500: '#4c25a4',
    950: '#000000',
  },
}
SCSS
$custom: #4c25a4;
$custom-light: #8864c0;
$custom-dark: #000000;
JSON
{
  "hex": "#4c25a4",
  "rgb": {
    "r": 76,
    "g": 37,
    "b": 164
  },
  "hsl": {
    "h": 258.425,
    "s": 63.184,
    "l": 39.412
  },
  "oklch": {
    "l": 0.40287,
    "c": 0.18737,
    "h": 289.1
  },
  "luminance": 0.0554
}

Semantic roles & 50–950 ramp

primary
#4C25A4
secondary
#A5C262
accent
#E642B4
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4C25A4

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

Preview Lab → · Contrast checker → · Palette generator →

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