#4C28B7#4C28B7

#4C28B7 is a dark, highly saturated violet. Relative luminance 0.065; OKLCH L 42.5% C 0.206 H 285.0°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#4C28B7
RGBrgb(76, 40, 183)
HSLhsl(255, 64%, 44%)
HSVhsv(255, 78%, 72%)
CMYKcmyk(58.5%, 78.1%, 0%, 28.2%)
CIE-LABlab(30.57, 52.05, -69.11)
CIE-LCHlch(30.57, 86.51, 306.98°)
OKLaboklab(42.49% 0.0535 -0.1991)
OKLCHoklch(42.49% 0.206 285)
XYZxyz(12.2839, 6.4722, 45.3925)
Luminance0.0647 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C28B7 #93B728
analogous
#284BB7 #4C28B7 #9328B7
triadic
#4C28B7 #B74C28 #28B74C
tetradic
#4C28B7 #B7284B #93B728 #28B793
square
#4C28B7 #B7284B #93B728 #28B793
split-complementary
#4C28B7 #B79328 #4BB728
monochromatic
#221253 #371D85 #4C28B7 #6A46D6 #9278E1

Accessibility & contrast

On white

9.15
#4C28B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#4C28B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C28B7
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C28B7#FFFFFF#000000##FFFFFF
##4C28B71.009.152.299.15
#FFFFFF9.151.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CBB
Deuteranopia (green-blind)
#0044B4
Tritanopia (blue-blind)
#0E526F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4c28b7;
/* rgb */ color: rgb(76, 40, 183);
/* oklch */ color: oklch(42.5% 0.206 285.0);
Tailwind
colors: {
  custom: {
    50: '#8b67ce',
    500: '#4c28b7',
    950: '#000000',
  },
}
SCSS
$custom: #4c28b7;
$custom-light: #8b67ce;
$custom-dark: #000000;
JSON
{
  "hex": "#4c28b7",
  "rgb": {
    "r": 76,
    "g": 40,
    "b": 183
  },
  "hsl": {
    "h": 255.105,
    "s": 64.126,
    "l": 43.725
  },
  "oklch": {
    "l": 0.42492,
    "c": 0.20618,
    "h": 285
  },
  "luminance": 0.06473
}

Semantic roles & 50–950 ramp

primary
#4C28B7
secondary
#B3C972
accent
#E741BD
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0614
muted
#7E7A82

Preview Lab

Preview with #4C28B7

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

Preview Lab → · Contrast checker → · Palette generator →

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