#4F28A9#4F28A9

#4F28A9 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.4% C 0.190 H 289.1°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#4F28A9
RGBrgb(79, 40, 169)
HSLhsl(258, 62%, 41%)
HSVhsv(258, 76%, 66%)
CMYKcmyk(53.3%, 76.3%, 0%, 33.7%)
CIE-LABlab(29.52, 48.49, -62.46)
CIE-LCHlch(29.52, 79.07, 307.83°)
OKLaboklab(41.42% 0.0621 -0.1796)
OKLCHoklch(41.42% 0.19 289.1)
XYZxyz(11.1426, 6.0439, 38.1079)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F28A9 #82A928
analogous
#2841A9 #4F28A9 #8F28A9
triadic
#4F28A9 #A94F28 #28A94F
tetradic
#4F28A9 #A92841 #82A928 #28A98F
square
#4F28A9 #A92841 #82A928 #28A98F
split-complementary
#4F28A9 #A98F28 #41A928
monochromatic
#211146 #381C78 #4F28A9 #6A3DD1 #906FDD

Accessibility & contrast

On white

9.51
#4F28A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#4F28A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F28A9
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F28A9#FFFFFF#000000##FFFFFF
##4F28A91.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AD
Deuteranopia (green-blind)
#0042A7
Tritanopia (blue-blind)
#2C4C67
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4f28a9;
/* rgb */ color: rgb(79, 40, 169);
/* oklch */ color: oklch(41.4% 0.190 289.1);
Tailwind
colors: {
  custom: {
    50: '#8a66c4',
    500: '#4f28a9',
    950: '#000000',
  },
}
SCSS
$custom: #4f28a9;
$custom-light: #8a66c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4f28a9",
  "rgb": {
    "r": 79,
    "g": 40,
    "b": 169
  },
  "hsl": {
    "h": 258.14,
    "s": 61.722,
    "l": 40.98
  },
  "oklch": {
    "l": 0.4142,
    "c": 0.18999,
    "h": 289.1
  },
  "luminance": 0.06044
}

Semantic roles & 50–950 ramp

primary
#4F28A9
secondary
#A8C469
accent
#E543B4
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4F28A9

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

Preview Lab → · Contrast checker → · Palette generator →

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