#4C25A7#4C25A7

#4C25A7 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.6% C 0.191 H 288.4°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#4C25A7
RGBrgb(76, 37, 167)
HSLhsl(258, 64%, 40%)
HSVhsv(258, 78%, 65%)
CMYKcmyk(54.5%, 77.8%, 0%, 34.5%)
CIE-LABlab(28.51, 48.94, -62.93)
CIE-LCHlch(28.51, 79.72, 307.87°)
OKLaboklab(40.58% 0.0603 -0.181)
OKLCHoklch(40.58% 0.191 288.4)
XYZxyz(10.6151, 5.6491, 37.0828)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C25A7 #80A725
analogous
#253FA7 #4C25A7 #8D25A7
triadic
#4C25A7 #A74C25 #25A74C
tetradic
#4C25A7 #A7253F #80A725 #25A78D
square
#4C25A7 #A7253F #80A725 #25A78D
split-complementary
#4C25A7 #A78D25 #3FA725
monochromatic
#1E0F43 #351A75 #4C25A7 #6537D3 #8C69DE

Accessibility & contrast

On white

9.86
#4C25A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#4C25A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C25A7
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C25A7#FFFFFF#000000##FFFFFF
##4C25A71.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AB
Deuteranopia (green-blind)
#0040A5
Tritanopia (blue-blind)
#274A65
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4c25a7;
/* rgb */ color: rgb(76, 37, 167);
/* oklch */ color: oklch(40.6% 0.191 288.4);
Tailwind
colors: {
  custom: {
    50: '#8865c2',
    500: '#4c25a7',
    950: '#000000',
  },
}
SCSS
$custom: #4c25a7;
$custom-light: #8865c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4c25a7",
  "rgb": {
    "r": 76,
    "g": 37,
    "b": 167
  },
  "hsl": {
    "h": 258,
    "s": 63.725,
    "l": 40
  },
  "oklch": {
    "l": 0.40577,
    "c": 0.1908,
    "h": 288.4
  },
  "luminance": 0.0565
}

Semantic roles & 50–950 ramp

primary
#4C25A7
secondary
#A7C464
accent
#E741B5
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0613
muted
#7D7A82

Preview Lab

Preview with #4C25A7

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

Preview Lab → · Contrast checker → · Palette generator →

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