#4F3799#4F3799

#4F3799 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.1% C 0.152 H 289.5°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#4F3799
RGBrgb(79, 55, 153)
HSLhsl(255, 47%, 41%)
HSVhsv(255, 64%, 60%)
CMYKcmyk(48.4%, 64.1%, 0%, 40%)
CIE-LABlab(31.10, 35.66, -50.19)
CIE-LCHlch(31.10, 61.57, 305.39°)
OKLaboklab(42.12% 0.0508 -0.1436)
OKLCHoklch(42.12% 0.152 289.5)
XYZxyz(10.3388, 6.6941, 30.8782)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F3799 #819937
analogous
#375099 #4F3799 #803799
triadic
#4F3799 #994F37 #37994F
tetradic
#4F3799 #993750 #819937 #379980
square
#4F3799 #993750 #819937 #379980
split-complementary
#4F3799 #998037 #509937
monochromatic
#21173F #38276C #4F3799 #6A4EBF #907BD0

Accessibility & contrast

On white

8.98
#4F3799 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#4F3799 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F3799
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F3799#FFFFFF#000000##FFFFFF
##4F37991.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9C
Deuteranopia (green-blind)
#004797
Tritanopia (blue-blind)
#374E63
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4f3799;
/* rgb */ color: rgb(79, 55, 153);
/* oklch */ color: oklch(42.1% 0.152 289.5);
Tailwind
colors: {
  custom: {
    50: '#876fb8',
    500: '#4f3799',
    950: '#000000',
  },
}
SCSS
$custom: #4f3799;
$custom-light: #876fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#4f3799",
  "rgb": {
    "r": 79,
    "g": 55,
    "b": 153
  },
  "hsl": {
    "h": 254.694,
    "s": 47.115,
    "l": 40.784
  },
  "oklch": {
    "l": 0.42123,
    "c": 0.15234,
    "h": 289.5
  },
  "luminance": 0.06695
}

Semantic roles & 50–950 ramp

primary
#4F3799
secondary
#A8B973
accent
#D751B6
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4F3799

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

Preview Lab → · Contrast checker → · Palette generator →

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