#4F2791#4F2791

#4F2791 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.1% C 0.163 H 295.0°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#4F2791
RGBrgb(79, 39, 145)
HSLhsl(263, 58%, 36%)
HSVhsv(263, 73%, 57%)
CMYKcmyk(45.5%, 73.1%, 0%, 43.1%)
CIE-LABlab(27.18, 42.28, -51.67)
CIE-LCHlch(27.18, 66.76, 309.29°)
OKLaboklab(39.1% 0.0688 -0.1479)
OKLCHoklch(39.1% 0.163 295)
XYZxyz(9.0594, 5.1574, 27.3007)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2791 #699127
analogous
#273491 #4F2791 #842791
triadic
#4F2791 #914F27 #27914F
tetradic
#4F2791 #912734 #699127 #279184
square
#4F2791 #912734 #699127 #279184
split-complementary
#4F2791 #918427 #349127
monochromatic
#1A0D31 #351A61 #4F2791 #6934C1 #8B5FD4

Accessibility & contrast

On white

10.34
#4F2791 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4F2791 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2791
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2791#FFFFFF#000000##FFFFFF
##4F27911.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004194
Deuteranopia (green-blind)
#003F8F
Tritanopia (blue-blind)
#3D4259
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4f2791;
/* rgb */ color: rgb(79, 39, 145);
/* oklch */ color: oklch(39.1% 0.163 295.0);
Tailwind
colors: {
  custom: {
    50: '#8765b2',
    500: '#4f2791',
    950: '#000000',
  },
}
SCSS
$custom: #4f2791;
$custom-light: #8765b2;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2791",
  "rgb": {
    "r": 79,
    "g": 39,
    "b": 145
  },
  "hsl": {
    "h": 262.642,
    "s": 57.609,
    "l": 36.078
  },
  "oklch": {
    "l": 0.39101,
    "c": 0.16315,
    "h": 295
  },
  "luminance": 0.05158
}

Semantic roles & 50–950 ramp

primary
#4F2791
secondary
#95B95B
accent
#E147A7
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4F2791

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

Preview Lab → · Contrast checker → · Palette generator →

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