#4F4E8A

A color in the Violet family

#4f4e8a is a color in the Violet family: RGB(79, 78, 138), HSL(241°, 28%, 42%), CMYK(43%, 43%, 0%, 46%). Closest named color: darkslateblue. Contrast is 7.53:1 on white and 2.79:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#4f4e8a
RGBrgb(79 78 138)
RGB (legacy)rgb(79, 78, 138)
RGB %rgb(31% 31% 54%)
HSLhsl(241 28% 42%)
HSV / HSBhsv(241, 43%, 54%)
HWBhwb(241 31% 46%)
CMYKcmyk(43%, 43%, 0%, 46%)
CIELAB (D50)lab(35.48 12.85 -33.82)
LCHlch(35.48 36.18 290.8)
OKLaboklab(0.4537 0.0211 -0.0941)
OKLCHoklch(0.4537 0.0965 282.61)
Decimal5197450

Properties

Color ToneViolet
Closest named colordarkslateblue ΔE 4.9
Closest web-safe color#666699
Hue241°
Saturation (HSL / HSV)28% / 43%
Lightness (HSL)42%
Brightness or Value (HSV)54%
Luminance (Rec.601 / Rec.709)33% / 32%
Relative luminance (WCAG)0.0895
Red / Green / Blue79 / 78 / 138

WCAG 2.2 Contrast Ratio

On White (#ffffff)
7.53:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
2.79:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 86.1 / -16 · As background with white / black text: Lc -90.9 / 18

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-brand: #4f4e8a;
  --color-brand-oklch: oklch(45.37% 0.0965 282.61);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(79 78 138 / 50%); }
/* Tailwind CSS */
<div class="bg-[#4f4e8a] text-[#4f4e8a] border-[#4f4e8a]">