#4C28CA#4C28CA

#4C28CA is a dark, highly saturated violet. Relative luminance 0.073; OKLCH L 44.4% C 0.227 H 282.1°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#4C28CA
RGBrgb(76, 40, 202)
HSLhsl(253, 67%, 47%)
HSVhsv(253, 80%, 79%)
CMYKcmyk(62.4%, 80.2%, 0%, 20.8%)
CIE-LABlab(32.52, 57.40, -77.08)
CIE-LCHlch(32.52, 96.10, 306.67°)
OKLaboklab(44.42% 0.0478 -0.2224)
OKLCHoklch(44.42% 0.227 282.1)
XYZxyz(14.3966, 7.3173, 56.5194)
Luminance0.0732 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C28CA #A6CA28
analogous
#2855CA #4C28CA #9D28CA
triadic
#4C28CA #CA4C28 #28CA4C
tetradic
#4C28CA #CA2855 #A6CA28 #28CA9D
square
#4C28CA #CA2855 #A6CA28 #28CA9D
split-complementary
#4C28CA #CA9D28 #55CA28
monochromatic
#261464 #391E97 #4C28CA #7152DD #9B85E7

Accessibility & contrast

On white

8.52
#4C28CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#4C28CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C28CA
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C28CA#FFFFFF#000000##FFFFFF
##4C28CA1.008.522.468.52
#FFFFFF8.521.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052CE
Deuteranopia (green-blind)
#0047C7
Tritanopia (blue-blind)
#005A7A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4c28ca;
/* rgb */ color: rgb(76, 40, 202);
/* oklch */ color: oklch(44.4% 0.227 282.1);
Tailwind
colors: {
  custom: {
    50: '#8e68dc',
    500: '#4c28ca',
    950: '#000000',
  },
}
SCSS
$custom: #4c28ca;
$custom-light: #8e68dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4c28ca",
  "rgb": {
    "r": 76,
    "g": 40,
    "b": 202
  },
  "hsl": {
    "h": 253.333,
    "s": 66.942,
    "l": 47.451
  },
  "oklch": {
    "l": 0.44422,
    "c": 0.22744,
    "h": 282.1
  },
  "luminance": 0.07318
}

Semantic roles & 50–950 ramp

primary
#4C28CA
secondary
#BED07E
accent
#EA3EC4
background
#F9F6FD
surface
#F2EBFB
border
#CCC6D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #4C28CA

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

Preview Lab → · Contrast checker → · Palette generator →

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