#4C25A6#4C25A6

#4C25A6 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.5% C 0.190 H 288.6°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#4C25A6
RGBrgb(76, 37, 166)
HSLhsl(258, 64%, 40%)
HSVhsv(258, 78%, 65%)
CMYKcmyk(54.2%, 77.7%, 0%, 34.9%)
CIE-LABlab(28.41, 48.65, -62.48)
CIE-LCHlch(28.41, 79.19, 307.91°)
OKLaboklab(40.48% 0.0606 -0.1797)
OKLCHoklch(40.48% 0.19 288.6)
XYZxyz(10.5230, 5.6123, 36.5978)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C25A6 #7FA625
analogous
#253EA6 #4C25A6 #8D25A6
triadic
#4C25A6 #A64C25 #25A64C
tetradic
#4C25A6 #A6253E #7FA625 #25A68D
square
#4C25A6 #A6253E #7FA625 #25A68D
split-complementary
#4C25A6 #A68D25 #3EA625
monochromatic
#1E0F42 #351A74 #4C25A6 #6536D2 #8C68DD

Accessibility & contrast

On white

9.89
#4C25A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C25A6
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C25A6#FFFFFF#000000##FFFFFF
##4C25A61.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c25a6;
/* rgb */ color: rgb(76, 37, 166);
/* oklch */ color: oklch(40.5% 0.190 288.6);
Tailwind
colors: {
  custom: {
    50: '#8864c2',
    500: '#4c25a6',
    950: '#000000',
  },
}
SCSS
$custom: #4c25a6;
$custom-light: #8864c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4c25a6",
  "rgb": {
    "r": 76,
    "g": 37,
    "b": 166
  },
  "hsl": {
    "h": 258.14,
    "s": 63.547,
    "l": 39.804
  },
  "oklch": {
    "l": 0.4048,
    "c": 0.18966,
    "h": 288.6
  },
  "luminance": 0.05613
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4C25A6

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

Preview Lab → · Contrast checker → · Palette generator →

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