#4F28A2#4F28A2

#4F28A2 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.8% C 0.182 H 290.6°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#4F28A2
RGBrgb(79, 40, 162)
HSLhsl(259, 60%, 40%)
HSVhsv(259, 75%, 64%)
CMYKcmyk(51.2%, 75.3%, 0%, 36.5%)
CIE-LABlab(28.87, 46.53, -59.30)
CIE-LCHlch(28.87, 75.37, 308.12°)
OKLaboklab(40.76% 0.0639 -0.1703)
OKLCHoklch(40.76% 0.182 290.6)
XYZxyz(10.5030, 5.7880, 34.7392)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F28A2 #7BA228
analogous
#283EA2 #4F28A2 #8C28A2
triadic
#4F28A2 #A24F28 #28A24F
tetradic
#4F28A2 #A2283E #7BA228 #28A28C
square
#4F28A2 #A2283E #7BA228 #28A28C
split-complementary
#4F28A2 #A28C28 #3EA228
monochromatic
#1F1040 #371C71 #4F28A2 #6939CE #8E6ADA

Accessibility & contrast

On white

9.73
#4F28A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#4F28A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F28A2
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F28A2#FFFFFF#000000##FFFFFF
##4F28A21.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A5
Deuteranopia (green-blind)
#0041A0
Tritanopia (blue-blind)
#324963
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4f28a2;
/* rgb */ color: rgb(79, 40, 162);
/* oklch */ color: oklch(40.8% 0.182 290.6);
Tailwind
colors: {
  custom: {
    50: '#8966bf',
    500: '#4f28a2',
    950: '#000000',
  },
}
SCSS
$custom: #4f28a2;
$custom-light: #8966bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4f28a2",
  "rgb": {
    "r": 79,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 259.18,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.40764,
    "c": 0.18191,
    "h": 290.6
  },
  "luminance": 0.05788
}

Semantic roles & 50–950 ramp

primary
#4F28A2
secondary
#A3C165
accent
#E444B1
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4F28A2

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

Preview Lab → · Contrast checker → · Palette generator →

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