#4F28A4#4F28A4

#4F28A4 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.9% C 0.184 H 290.1°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#4F28A4
RGBrgb(79, 40, 164)
HSLhsl(259, 61%, 40%)
HSVhsv(259, 76%, 64%)
CMYKcmyk(51.8%, 75.6%, 0%, 35.7%)
CIE-LABlab(29.06, 47.09, -60.21)
CIE-LCHlch(29.06, 76.43, 308.03°)
OKLaboklab(40.95% 0.0634 -0.173)
OKLCHoklch(40.95% 0.184 290.1)
XYZxyz(10.6822, 5.8597, 35.6829)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F28A4 #7DA428
analogous
#283FA4 #4F28A4 #8D28A4
triadic
#4F28A4 #A44F28 #28A44F
tetradic
#4F28A4 #A4283F #7DA428 #28A48D
square
#4F28A4 #A4283F #7DA428 #28A48D
split-complementary
#4F28A4 #A48D28 #3FA428
monochromatic
#201042 #371C73 #4F28A4 #693ACF #8F6BDB

Accessibility & contrast

On white

9.67
#4F28A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#4F28A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F28A4
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F28A4#FFFFFF#000000##FFFFFF
##4F28A41.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A8
Deuteranopia (green-blind)
#0042A2
Tritanopia (blue-blind)
#314A64
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4f28a4;
/* rgb */ color: rgb(79, 40, 164);
/* oklch */ color: oklch(40.9% 0.184 290.1);
Tailwind
colors: {
  custom: {
    50: '#8966c0',
    500: '#4f28a4',
    950: '#000000',
  },
}
SCSS
$custom: #4f28a4;
$custom-light: #8966c0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f28a4",
  "rgb": {
    "r": 79,
    "g": 40,
    "b": 164
  },
  "hsl": {
    "h": 258.871,
    "s": 60.784,
    "l": 40
  },
  "oklch": {
    "l": 0.4095,
    "c": 0.18423,
    "h": 290.1
  },
  "luminance": 0.0586
}

Semantic roles & 50–950 ramp

primary
#4F28A4
secondary
#A5C166
accent
#E444B2
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #4F28A4

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

Preview Lab → · Contrast checker → · Palette generator →

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