#4F2891#4F2891

#4F2891 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.2% C 0.162 H 294.8°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#4F2891
RGBrgb(79, 40, 145)
HSLhsl(262, 57%, 36%)
HSVhsv(262, 72%, 57%)
CMYKcmyk(45.5%, 72.4%, 0%, 43.1%)
CIE-LABlab(27.36, 41.77, -51.37)
CIE-LCHlch(27.36, 66.20, 309.11°)
OKLaboklab(39.23% 0.0678 -0.147)
OKLCHoklch(39.23% 0.162 294.8)
XYZxyz(9.0927, 5.2239, 27.3118)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2891 #6A9128
analogous
#283691 #4F2891 #842891
triadic
#4F2891 #914F28 #28914F
tetradic
#4F2891 #912836 #6A9128 #289184
square
#4F2891 #912836 #6A9128 #289184
split-complementary
#4F2891 #918428 #369128
monochromatic
#1B0E31 #351B61 #4F2891 #6935C1 #8B60D3

Accessibility & contrast

On white

10.27
#4F2891 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4F2891 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2891
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2891#FFFFFF#000000##FFFFFF
##4F28911.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004294
Deuteranopia (green-blind)
#003F8F
Tritanopia (blue-blind)
#3C435A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4f2891;
/* rgb */ color: rgb(79, 40, 145);
/* oklch */ color: oklch(39.2% 0.162 294.8);
Tailwind
colors: {
  custom: {
    50: '#8765b2',
    500: '#4f2891',
    950: '#000000',
  },
}
SCSS
$custom: #4f2891;
$custom-light: #8765b2;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2891",
  "rgb": {
    "r": 79,
    "g": 40,
    "b": 145
  },
  "hsl": {
    "h": 262.286,
    "s": 56.757,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39233,
    "c": 0.16194,
    "h": 294.8
  },
  "luminance": 0.05224
}

Semantic roles & 50–950 ramp

primary
#4F2891
secondary
#96B95C
accent
#E048A7
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4F2891

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

Preview Lab → · Contrast checker → · Palette generator →

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