#4F28AC#4F28AC

#4F28AC is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.7% C 0.193 H 288.5°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#4F28AC
RGBrgb(79, 40, 172)
HSLhsl(258, 62%, 42%)
HSVhsv(258, 77%, 67%)
CMYKcmyk(54.1%, 76.7%, 0%, 32.5%)
CIE-LABlab(29.81, 49.33, -63.79)
CIE-LCHlch(29.81, 80.64, 307.72°)
OKLaboklab(41.71% 0.0612 -0.1835)
OKLCHoklch(41.71% 0.193 288.5)
XYZxyz(11.4274, 6.1578, 39.6082)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F28AC #85AC28
analogous
#2843AC #4F28AC #9128AC
triadic
#4F28AC #AC4F28 #28AC4F
tetradic
#4F28AC #AC2843 #85AC28 #28AC91
square
#4F28AC #AC2843 #85AC28 #28AC91
split-complementary
#4F28AC #AC9128 #43AC28
monochromatic
#211149 #381C7A #4F28AC #6A3FD2 #9171DE

Accessibility & contrast

On white

9.41
#4F28AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#4F28AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F28AC
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F28AC#FFFFFF#000000##FFFFFF
##4F28AC1.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B0
Deuteranopia (green-blind)
#0043AA
Tritanopia (blue-blind)
#2A4D69
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4f28ac;
/* rgb */ color: rgb(79, 40, 172);
/* oklch */ color: oklch(41.7% 0.193 288.5);
Tailwind
colors: {
  custom: {
    50: '#8b67c6',
    500: '#4f28ac',
    950: '#000000',
  },
}
SCSS
$custom: #4f28ac;
$custom-light: #8b67c6;
$custom-dark: #000000;
JSON
{
  "hex": "#4f28ac",
  "rgb": {
    "r": 79,
    "g": 40,
    "b": 172
  },
  "hsl": {
    "h": 257.727,
    "s": 62.264,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41706,
    "c": 0.19343,
    "h": 288.5
  },
  "luminance": 0.06158
}

Semantic roles & 50–950 ramp

primary
#4F28AC
secondary
#AAC56B
accent
#E542B5
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4F28AC

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

Preview Lab → · Contrast checker → · Palette generator →

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