#4F408E#4F408E

#4F408E is a dark, vivid violet. Relative luminance 0.073; OKLCH L 42.9% C 0.124 H 288.9°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#4F408E
RGBrgb(79, 64, 142)
HSLhsl(252, 38%, 40%)
HSVhsv(252, 55%, 56%)
CMYKcmyk(44.4%, 54.9%, 0%, 44.3%)
CIE-LABlab(32.44, 26.77, -41.30)
CIE-LCHlch(32.44, 49.22, 302.95°)
OKLaboklab(42.86% 0.0402 -0.1175)
OKLCHoklch(42.86% 0.124 288.9)
XYZxyz(9.9390, 7.2817, 26.4678)
Luminance0.0728 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F408E #7F8E40
analogous
#40588E #4F408E #76408E
triadic
#4F408E #8E4F40 #408E4F
tetradic
#4F408E #8E4058 #7F8E40 #408E76
square
#4F408E #8E4058 #7F8E40 #408E76
split-complementary
#4F408E #8E7640 #588E40
monochromatic
#201A3A #382D64 #4F408E #6958B4 #8F82C7

Accessibility & contrast

On white

8.55
#4F408E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#4F408E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F408E
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F408E#FFFFFF#000000##FFFFFF
##4F408E1.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4E91
Deuteranopia (green-blind)
#1B4A8C
Tritanopia (blue-blind)
#3C5160
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4f408e;
/* rgb */ color: rgb(79, 64, 142);
/* oklch */ color: oklch(42.9% 0.124 288.9);
Tailwind
colors: {
  custom: {
    50: '#8575af',
    500: '#4f408e',
    950: '#000000',
  },
}
SCSS
$custom: #4f408e;
$custom-light: #8575af;
$custom-dark: #000000;
JSON
{
  "hex": "#4f408e",
  "rgb": {
    "r": 79,
    "g": 64,
    "b": 142
  },
  "hsl": {
    "h": 251.538,
    "s": 37.864,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42856,
    "c": 0.12416,
    "h": 288.9
  },
  "luminance": 0.07282
}

Semantic roles & 50–950 ramp

primary
#4F408E
secondary
#A6B179
accent
#CE5AB8
background
#F8F7FA
surface
#EFEDF5
border
#CAC8CF
text
#0B0810
muted
#7C7B7F

Preview Lab

Preview with #4F408E

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

Preview Lab → · Contrast checker → · Palette generator →

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