#4F28A6#4F28A6

#4F28A6 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.1% C 0.187 H 289.7°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#4F28A6
RGBrgb(79, 40, 166)
HSLhsl(259, 61%, 40%)
HSVhsv(259, 76%, 65%)
CMYKcmyk(52.4%, 75.9%, 0%, 34.9%)
CIE-LABlab(29.24, 47.65, -61.11)
CIE-LCHlch(29.24, 77.49, 307.94°)
OKLaboklab(41.14% 0.0629 -0.1756)
OKLCHoklch(41.14% 0.187 289.7)
XYZxyz(10.8642, 5.9325, 36.6416)
Luminance0.0593 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F28A6 #7FA628
analogous
#2840A6 #4F28A6 #8E28A6
triadic
#4F28A6 #A64F28 #28A64F
tetradic
#4F28A6 #A62840 #7FA628 #28A68E
square
#4F28A6 #A62840 #7FA628 #28A68E
split-complementary
#4F28A6 #A68E28 #40A628
monochromatic
#201043 #381C75 #4F28A6 #693BD0 #8F6DDC

Accessibility & contrast

On white

9.60
#4F28A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#4F28A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F28A6
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F28A6#FFFFFF#000000##FFFFFF
##4F28A61.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AA
Deuteranopia (green-blind)
#0042A4
Tritanopia (blue-blind)
#2F4B65
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4f28a6;
/* rgb */ color: rgb(79, 40, 166);
/* oklch */ color: oklch(41.1% 0.187 289.7);
Tailwind
colors: {
  custom: {
    50: '#8a66c1',
    500: '#4f28a6',
    950: '#000000',
  },
}
SCSS
$custom: #4f28a6;
$custom-light: #8a66c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4f28a6",
  "rgb": {
    "r": 79,
    "g": 40,
    "b": 166
  },
  "hsl": {
    "h": 258.571,
    "s": 61.165,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41137,
    "c": 0.18653,
    "h": 289.7
  },
  "luminance": 0.05933
}

Semantic roles & 50–950 ramp

primary
#4F28A6
secondary
#A6C267
accent
#E444B3
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #4F28A6

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

Preview Lab → · Contrast checker → · Palette generator →

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