#4F28AE#4F28AE

#4F28AE is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.9% C 0.196 H 288.1°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#4F28AE
RGBrgb(79, 40, 174)
HSLhsl(257, 63%, 42%)
HSVhsv(257, 77%, 68%)
CMYKcmyk(54.6%, 77%, 0%, 31.8%)
CIE-LABlab(30.00, 49.89, -64.68)
CIE-LCHlch(30.00, 81.69, 307.65°)
OKLaboklab(41.9% 0.0607 -0.1861)
OKLCHoklch(41.9% 0.196 288.1)
XYZxyz(11.6210, 6.2353, 40.6274)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F28AE #87AE28
analogous
#2844AE #4F28AE #9228AE
triadic
#4F28AE #AE4F28 #28AE4F
tetradic
#4F28AE #AE2844 #87AE28 #28AE92
square
#4F28AE #AE2844 #87AE28 #28AE92
split-complementary
#4F28AE #AE9228 #44AE28
monochromatic
#22114A #381D7C #4F28AE #6B40D3 #9172DF

Accessibility & contrast

On white

9.34
#4F28AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#4F28AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F28AE
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F28AE#FFFFFF#000000##FFFFFF
##4F28AE1.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB2
Deuteranopia (green-blind)
#0043AC
Tritanopia (blue-blind)
#284E6A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4f28ae;
/* rgb */ color: rgb(79, 40, 174);
/* oklch */ color: oklch(41.9% 0.196 288.1);
Tailwind
colors: {
  custom: {
    50: '#8b67c7',
    500: '#4f28ae',
    950: '#000000',
  },
}
SCSS
$custom: #4f28ae;
$custom-light: #8b67c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4f28ae",
  "rgb": {
    "r": 79,
    "g": 40,
    "b": 174
  },
  "hsl": {
    "h": 257.463,
    "s": 62.617,
    "l": 41.961
  },
  "oklch": {
    "l": 0.41898,
    "c": 0.19571,
    "h": 288.1
  },
  "luminance": 0.06236
}

Semantic roles & 50–950 ramp

primary
#4F28AE
secondary
#ACC66C
accent
#E642B6
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4F28AE

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

Preview Lab → · Contrast checker → · Palette generator →

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