#4F408D#4F408D

#4F408D is a dark, vivid violet. Relative luminance 0.073; OKLCH L 42.8% C 0.123 H 289.1°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#4F408D
RGBrgb(79, 64, 141)
HSLhsl(252, 38%, 40%)
HSVhsv(252, 55%, 55%)
CMYKcmyk(44%, 54.6%, 0%, 44.7%)
CIE-LABlab(32.37, 26.46, -40.80)
CIE-LCHlch(32.37, 48.63, 302.97°)
OKLaboklab(42.79% 0.0402 -0.116)
OKLCHoklch(42.79% 0.123 289.1)
XYZxyz(9.8642, 7.2518, 26.0741)
Luminance0.0725 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F408D #7E8D40
analogous
#40588D #4F408D #75408D
triadic
#4F408D #8D4F40 #408D4F
tetradic
#4F408D #8D4058 #7E8D40 #408D75
square
#4F408D #8D4058 #7E8D40 #408D75
split-complementary
#4F408D #8D7540 #588D40
monochromatic
#201A39 #372D63 #4F408D #6957B3 #8F81C6

Accessibility & contrast

On white

8.57
#4F408D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#4F408D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F408D
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F408D#FFFFFF#000000##FFFFFF
##4F408D1.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4E90
Deuteranopia (green-blind)
#1D4A8B
Tritanopia (blue-blind)
#3D5060
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4f408d;
/* rgb */ color: rgb(79, 64, 141);
/* oklch */ color: oklch(42.8% 0.123 289.1);
Tailwind
colors: {
  custom: {
    50: '#8475af',
    500: '#4f408d',
    950: '#000000',
  },
}
SCSS
$custom: #4f408d;
$custom-light: #8475af;
$custom-dark: #000000;
JSON
{
  "hex": "#4f408d",
  "rgb": {
    "r": 79,
    "g": 64,
    "b": 141
  },
  "hsl": {
    "h": 251.688,
    "s": 37.561,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42785,
    "c": 0.12273,
    "h": 289.1
  },
  "luminance": 0.07252
}

Semantic roles & 50–950 ramp

primary
#4F408D
secondary
#A6B078
accent
#CE5AB7
background
#F8F7FA
surface
#EFEDF4
border
#CAC8CE
text
#0B0810
muted
#7C7B7F

Preview Lab

Preview with #4F408D

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

Preview Lab → · Contrast checker → · Palette generator →

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