#4C25A2#4C25A2

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

Color values

HEX#4C25A2
RGBrgb(76, 37, 162)
HSLhsl(259, 63%, 39%)
HSVhsv(259, 77%, 64%)
CMYKcmyk(53.1%, 77.2%, 0%, 36.5%)
CIE-LABlab(28.03, 47.53, -60.69)
CIE-LCHlch(28.03, 77.09, 308.07°)
OKLaboklab(40.1% 0.0617 -0.1745)
OKLCHoklch(40.1% 0.185 289.5)
XYZxyz(10.1618, 5.4678, 34.6954)
Luminance0.0547 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C25A2 #7BA225
analogous
#253DA2 #4C25A2 #8B25A2
triadic
#4C25A2 #A24C25 #25A24C
tetradic
#4C25A2 #A2253D #7BA225 #25A28B
square
#4C25A2 #A2253D #7BA225 #25A28B
split-complementary
#4C25A2 #A28B25 #3DA225
monochromatic
#1D0E3E #351A70 #4C25A2 #6534D1 #8A65DC

Accessibility & contrast

On white

10.03
#4C25A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#4C25A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C25A2
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C25A2#FFFFFF#000000##FFFFFF
##4C25A21.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c25a2;
/* rgb */ color: rgb(76, 37, 162);
/* oklch */ color: oklch(40.1% 0.185 289.5);
Tailwind
colors: {
  custom: {
    50: '#8864bf',
    500: '#4c25a2',
    950: '#000000',
  },
}
SCSS
$custom: #4c25a2;
$custom-light: #8864bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4c25a2",
  "rgb": {
    "r": 76,
    "g": 37,
    "b": 162
  },
  "hsl": {
    "h": 258.72,
    "s": 62.814,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40095,
    "c": 0.18508,
    "h": 289.5
  },
  "luminance": 0.05468
}

Semantic roles & 50–950 ramp

primary
#4C25A2
secondary
#A4C261
accent
#E642B3
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4C25A2

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

Preview Lab → · Contrast checker → · Palette generator →

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