#4F28AB#4F28AB

#4F28AB is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.6% C 0.192 H 288.7°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#4F28AB
RGBrgb(79, 40, 171)
HSLhsl(258, 62%, 41%)
HSVhsv(258, 77%, 67%)
CMYKcmyk(53.8%, 76.6%, 0%, 32.9%)
CIE-LABlab(29.71, 49.05, -63.35)
CIE-LCHlch(29.71, 80.12, 307.75°)
OKLaboklab(41.61% 0.0615 -0.1822)
OKLCHoklch(41.61% 0.192 288.7)
XYZxyz(11.3318, 6.1196, 39.1043)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F28AB #84AB28
analogous
#2843AB #4F28AB #9128AB
triadic
#4F28AB #AB4F28 #28AB4F
tetradic
#4F28AB #AB2843 #84AB28 #28AB91
square
#4F28AB #AB2843 #84AB28 #28AB91
split-complementary
#4F28AB #AB9128 #43AB28
monochromatic
#211148 #381C79 #4F28AB #6A3ED2 #9170DE

Accessibility & contrast

On white

9.44
#4F28AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#4F28AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F28AB
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F28AB#FFFFFF#000000##FFFFFF
##4F28AB1.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AF
Deuteranopia (green-blind)
#0043A9
Tritanopia (blue-blind)
#2B4D68
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4f28ab;
/* rgb */ color: rgb(79, 40, 171);
/* oklch */ color: oklch(41.6% 0.192 288.7);
Tailwind
colors: {
  custom: {
    50: '#8a67c5',
    500: '#4f28ab',
    950: '#000000',
  },
}
SCSS
$custom: #4f28ab;
$custom-light: #8a67c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4f28ab",
  "rgb": {
    "r": 79,
    "g": 40,
    "b": 171
  },
  "hsl": {
    "h": 257.863,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.4161,
    "c": 0.19228,
    "h": 288.7
  },
  "luminance": 0.0612
}

Semantic roles & 50–950 ramp

primary
#4F28AB
secondary
#AAC46A
accent
#E543B5
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4F28AB

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

Preview Lab → · Contrast checker → · Palette generator →

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