#4F339A#4F339A

#4F339A is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.6% C 0.159 H 290.2°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#4F339A
RGBrgb(79, 51, 154)
HSLhsl(256, 50%, 40%)
HSVhsv(256, 67%, 60%)
CMYKcmyk(48.7%, 66.9%, 0%, 39.6%)
CIE-LABlab(30.31, 38.30, -52.09)
CIE-LCHlch(30.31, 64.65, 306.33°)
OKLaboklab(41.58% 0.055 -0.1492)
OKLCHoklch(41.58% 0.159 290.2)
XYZxyz(10.2394, 6.3626, 31.2542)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F339A #7E9A33
analogous
#334A9A #4F339A #83339A
triadic
#4F339A #9A4F33 #339A4F
tetradic
#4F339A #9A334A #7E9A33 #339A83
square
#4F339A #9A334A #7E9A33 #339A83
split-complementary
#4F339A #9A8333 #4A9A33
monochromatic
#20153E #37246C #4F339A #6948C2 #8F76D2

Accessibility & contrast

On white

9.24
#4F339A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F339A
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F339A#FFFFFF#000000##FFFFFF
##4F339A1.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499D
Deuteranopia (green-blind)
#004598
Tritanopia (blue-blind)
#374C62
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4f339a;
/* rgb */ color: rgb(79, 51, 154);
/* oklch */ color: oklch(41.6% 0.159 290.2);
Tailwind
colors: {
  custom: {
    50: '#876cb9',
    500: '#4f339a',
    950: '#000000',
  },
}
SCSS
$custom: #4f339a;
$custom-light: #876cb9;
$custom-dark: #000000;
JSON
{
  "hex": "#4f339a",
  "rgb": {
    "r": 79,
    "g": 51,
    "b": 154
  },
  "hsl": {
    "h": 256.311,
    "s": 50.244,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41575,
    "c": 0.15902,
    "h": 290.2
  },
  "luminance": 0.06363
}

Semantic roles & 50–950 ramp

primary
#4F339A
secondary
#A6BA6F
accent
#DA4EB4
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4F339A

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

Preview Lab → · Contrast checker → · Palette generator →

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