#4F3399#4F3399

#4F3399 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.5% C 0.158 H 290.5°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#4F3399
RGBrgb(79, 51, 153)
HSLhsl(256, 50%, 40%)
HSVhsv(256, 67%, 60%)
CMYKcmyk(48.4%, 66.7%, 0%, 40%)
CIE-LABlab(30.23, 38.01, -51.61)
CIE-LCHlch(30.23, 64.09, 306.37°)
OKLaboklab(41.49% 0.0552 -0.1478)
OKLCHoklch(41.49% 0.158 290.5)
XYZxyz(10.1564, 6.3294, 30.8174)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F3399 #7D9933
analogous
#334A99 #4F3399 #823399
triadic
#4F3399 #994F33 #33994F
tetradic
#4F3399 #99334A #7D9933 #339982
square
#4F3399 #99334A #7D9933 #339982
split-complementary
#4F3399 #998233 #4A9933
monochromatic
#20143D #37246B #4F3399 #6947C2 #8F75D1

Accessibility & contrast

On white

9.27
#4F3399 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#4F3399 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F3399
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F3399#FFFFFF#000000##FFFFFF
##4F33991.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499C
Deuteranopia (green-blind)
#004597
Tritanopia (blue-blind)
#374C61
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4f3399;
/* rgb */ color: rgb(79, 51, 153);
/* oklch */ color: oklch(41.5% 0.158 290.5);
Tailwind
colors: {
  custom: {
    50: '#876cb8',
    500: '#4f3399',
    950: '#000000',
  },
}
SCSS
$custom: #4f3399;
$custom-light: #876cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#4f3399",
  "rgb": {
    "r": 79,
    "g": 51,
    "b": 153
  },
  "hsl": {
    "h": 256.471,
    "s": 50,
    "l": 40
  },
  "oklch": {
    "l": 0.41492,
    "c": 0.15774,
    "h": 290.5
  },
  "luminance": 0.0633
}

Semantic roles & 50–950 ramp

primary
#4F3399
secondary
#A5B96E
accent
#DA4EB3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4F3399

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

Preview Lab → · Contrast checker → · Palette generator →

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