#4F28BA#4F28BA

#4F28BA is a dark, highly saturated violet. Relative luminance 0.067; OKLCH L 43.1% C 0.209 H 285.9°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#4F28BA
RGBrgb(79, 40, 186)
HSLhsl(256, 65%, 44%)
HSVhsv(256, 78%, 73%)
CMYKcmyk(57.5%, 78.5%, 0%, 27.1%)
CIE-LABlab(31.17, 53.25, -69.89)
CIE-LCHlch(31.17, 87.87, 307.31°)
OKLaboklab(43.07% 0.0572 -0.2013)
OKLCHoklch(43.07% 0.209 285.9)
XYZxyz(12.8435, 6.7243, 47.0660)
Luminance0.0673 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F28BA #93BA28
analogous
#284ABA #4F28BA #9828BA
triadic
#4F28BA #BA4F28 #28BA4F
tetradic
#4F28BA #BA284A #93BA28 #28BA98
square
#4F28BA #BA284A #93BA28 #28BA98
split-complementary
#4F28BA #BA9828 #4ABA28
monochromatic
#241255 #3A1D88 #4F28BA #6E48D8 #967AE2

Accessibility & contrast

On white

8.96
#4F28BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#4F28BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F28BA
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F28BA#FFFFFF#000000##FFFFFF
##4F28BA1.008.962.358.96
#FFFFFF8.961.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBE
Deuteranopia (green-blind)
#0045B7
Tritanopia (blue-blind)
#175371
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4f28ba;
/* rgb */ color: rgb(79, 40, 186);
/* oklch */ color: oklch(43.1% 0.209 285.9);
Tailwind
colors: {
  custom: {
    50: '#8d67d0',
    500: '#4f28ba',
    950: '#000000',
  },
}
SCSS
$custom: #4f28ba;
$custom-light: #8d67d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f28ba",
  "rgb": {
    "r": 79,
    "g": 40,
    "b": 186
  },
  "hsl": {
    "h": 256.027,
    "s": 64.602,
    "l": 44.314
  },
  "oklch": {
    "l": 0.43069,
    "c": 0.20927,
    "h": 285.9
  },
  "luminance": 0.06725
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4F28BA

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

Preview Lab → · Contrast checker → · Palette generator →

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