#4F28A0#4F28A0

#4F28A0 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.6% C 0.180 H 291.0°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#4F28A0
RGBrgb(79, 40, 160)
HSLhsl(260, 60%, 39%)
HSVhsv(260, 75%, 63%)
CMYKcmyk(50.6%, 75%, 0%, 37.3%)
CIE-LABlab(28.69, 45.96, -58.38)
CIE-LCHlch(28.69, 74.31, 308.21°)
OKLaboklab(40.58% 0.0644 -0.1676)
OKLCHoklch(40.58% 0.18 291)
XYZxyz(10.3266, 5.7175, 33.8104)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F28A0 #79A028
analogous
#283DA0 #4F28A0 #8B28A0
triadic
#4F28A0 #A04F28 #28A04F
tetradic
#4F28A0 #A0283D #79A028 #28A08B
square
#4F28A0 #A0283D #79A028 #28A08B
split-complementary
#4F28A0 #A08B28 #3DA028
monochromatic
#1F103E #371C6F #4F28A0 #6838CD #8E69D9

Accessibility & contrast

On white

9.80
#4F28A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#4F28A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F28A0
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F28A0#FFFFFF#000000##FFFFFF
##4F28A01.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A3
Deuteranopia (green-blind)
#00419E
Tritanopia (blue-blind)
#334862
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4f28a0;
/* rgb */ color: rgb(79, 40, 160);
/* oklch */ color: oklch(40.6% 0.180 291.0);
Tailwind
colors: {
  custom: {
    50: '#8966bd',
    500: '#4f28a0',
    950: '#000000',
  },
}
SCSS
$custom: #4f28a0;
$custom-light: #8966bd;
$custom-dark: #000000;
JSON
{
  "hex": "#4f28a0",
  "rgb": {
    "r": 79,
    "g": 40,
    "b": 160
  },
  "hsl": {
    "h": 259.5,
    "s": 60,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40579,
    "c": 0.17959,
    "h": 291
  },
  "luminance": 0.05718
}

Semantic roles & 50–950 ramp

primary
#4F28A0
secondary
#A2C064
accent
#E345B0
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4F28A0

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

Preview Lab → · Contrast checker → · Palette generator →

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