#4F3786#4F3786

#4F3786 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 40.7% C 0.127 H 294.0°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#4F3786
RGBrgb(79, 55, 134)
HSLhsl(258, 42%, 37%)
HSVhsv(258, 59%, 53%)
CMYKcmyk(41%, 59%, 0%, 47.5%)
CIE-LABlab(29.70, 29.99, -40.76)
CIE-LCHlch(29.70, 50.61, 306.34°)
OKLaboklab(40.66% 0.0517 -0.1159)
OKLCHoklch(40.66% 0.127 294)
XYZxyz(8.8926, 6.1157, 23.2616)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F3786 #6E8637
analogous
#374786 #4F3786 #773786
triadic
#4F3786 #864F37 #37864F
tetradic
#4F3786 #863747 #6E8637 #378677
square
#4F3786 #863747 #6E8637 #378677
split-complementary
#4F3786 #867737 #478637
monochromatic
#1C132F #35255B #4F3786 #6949B1 #8B72C5

Accessibility & contrast

On white

9.45
#4F3786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#4F3786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F3786
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F3786#FFFFFF#000000##FFFFFF
##4F37861.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B4789
Deuteranopia (green-blind)
#154584
Tritanopia (blue-blind)
#414859
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4f3786;
/* rgb */ color: rgb(79, 55, 134);
/* oklch */ color: oklch(40.7% 0.127 294.0);
Tailwind
colors: {
  custom: {
    50: '#846faa',
    500: '#4f3786',
    950: '#000000',
  },
}
SCSS
$custom: #4f3786;
$custom-light: #846faa;
$custom-dark: #000000;
JSON
{
  "hex": "#4f3786",
  "rgb": {
    "r": 79,
    "g": 55,
    "b": 134
  },
  "hsl": {
    "h": 258.228,
    "s": 41.799,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40657,
    "c": 0.12689,
    "h": 294
  },
  "luminance": 0.06116
}

Semantic roles & 50–950 ramp

primary
#4F3786
secondary
#9AAE6B
accent
#D256AC
background
#F8F6FA
surface
#EFECF4
border
#CAC7CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4F3786

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

Preview Lab → · Contrast checker → · Palette generator →

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