#4F3198#4F3198

#4F3198 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.1% C 0.159 H 291.1°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#4F3198
RGBrgb(79, 49, 152)
HSLhsl(257, 51%, 39%)
HSVhsv(257, 68%, 60%)
CMYKcmyk(48%, 67.8%, 0%, 40.4%)
CIE-LABlab(29.73, 38.85, -51.81)
CIE-LCHlch(29.73, 64.76, 306.87°)
OKLaboklab(41.11% 0.0574 -0.1484)
OKLCHoklch(41.11% 0.159 291.1)
XYZxyz(9.9887, 6.1255, 30.3557)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F3198 #7A9831
analogous
#314698 #4F3198 #833198
triadic
#4F3198 #984F31 #31984F
tetradic
#4F3198 #983146 #7A9831 #319883
square
#4F3198 #983146 #7A9831 #319883
split-complementary
#4F3198 #988331 #469831
monochromatic
#1F133B #37226A #4F3198 #6944C3 #8E72D2

Accessibility & contrast

On white

9.44
#4F3198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#4F3198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F3198
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F3198#FFFFFF#000000##FFFFFF
##4F31981.009.442.239.44
#FFFFFF9.441.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489B
Deuteranopia (green-blind)
#004496
Tritanopia (blue-blind)
#384A60
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4f3198;
/* rgb */ color: rgb(79, 49, 152);
/* oklch */ color: oklch(41.1% 0.159 291.1);
Tailwind
colors: {
  custom: {
    50: '#876bb7',
    500: '#4f3198',
    950: '#000000',
  },
}
SCSS
$custom: #4f3198;
$custom-light: #876bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#4f3198",
  "rgb": {
    "r": 79,
    "g": 49,
    "b": 152
  },
  "hsl": {
    "h": 257.476,
    "s": 51.244,
    "l": 39.412
  },
  "oklch": {
    "l": 0.41105,
    "c": 0.1591,
    "h": 291.1
  },
  "luminance": 0.06126
}

Semantic roles & 50–950 ramp

primary
#4F3198
secondary
#A3B96B
accent
#DB4DB1
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4F3198

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

Preview Lab → · Contrast checker → · Palette generator →

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