#4F28B9#4F28B9

#4F28B9 is a dark, highly saturated violet. Relative luminance 0.067; OKLCH L 43.0% C 0.208 H 286.0°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#4F28B9
RGBrgb(79, 40, 185)
HSLhsl(256, 64%, 44%)
HSVhsv(256, 78%, 73%)
CMYKcmyk(57.3%, 78.4%, 0%, 27.5%)
CIE-LABlab(31.07, 52.98, -69.46)
CIE-LCHlch(31.07, 87.36, 307.33°)
OKLaboklab(42.97% 0.0575 -0.2001)
OKLCHoklch(42.97% 0.208 286)
XYZxyz(12.7376, 6.6819, 46.5081)
Luminance0.0668 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F28B9 #92B928
analogous
#284AB9 #4F28B9 #9828B9
triadic
#4F28B9 #B94F28 #28B94F
tetradic
#4F28B9 #B9284A #92B928 #28B998
square
#4F28B9 #B9284A #92B928 #28B998
split-complementary
#4F28B9 #B99828 #4AB928
monochromatic
#241254 #3A1D87 #4F28B9 #6E47D7 #9579E2

Accessibility & contrast

On white

8.99
#4F28B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#4F28B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F28B9
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F28B9#FFFFFF#000000##FFFFFF
##4F28B91.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBD
Deuteranopia (green-blind)
#0045B6
Tritanopia (blue-blind)
#195270
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4f28b9;
/* rgb */ color: rgb(79, 40, 185);
/* oklch */ color: oklch(43.0% 0.208 286.0);
Tailwind
colors: {
  custom: {
    50: '#8d67cf',
    500: '#4f28b9',
    950: '#000000',
  },
}
SCSS
$custom: #4f28b9;
$custom-light: #8d67cf;
$custom-dark: #000000;
JSON
{
  "hex": "#4f28b9",
  "rgb": {
    "r": 79,
    "g": 40,
    "b": 185
  },
  "hsl": {
    "h": 256.138,
    "s": 64.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.4297,
    "c": 0.20815,
    "h": 286
  },
  "luminance": 0.06683
}

Semantic roles & 50–950 ramp

primary
#4F28B9
secondary
#B3CA73
accent
#E740BA
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0614
muted
#7E7A82

Preview Lab

Preview with #4F28B9

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

Preview Lab → · Contrast checker → · Palette generator →

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