#4F287C

A color in the Violet family

#4f287c is a color in the Violet family: RGB(79, 40, 124), HSL(268°, 51%, 32%), CMYK(36%, 68%, 0%, 51%). Closest named color: darkslateblue. Contrast is 10.9:1 on white and 1.93:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#4f287c
RGBrgb(79 40 124)
RGB (legacy)rgb(79, 40, 124)
RGB %rgb(31% 16% 49%)
HSLhsl(268 51% 32%)
HSV / HSBhsv(268, 68%, 49%)
HWBhwb(268 16% 51%)
CMYKcmyk(36%, 68%, 0%, 51%)
CIELAB (D50)lab(25.21 32.05 -41.51)
LCHlch(25.21 52.45 307.67)
OKLaboklab(0.3749 0.0712 -0.1166)
OKLCHoklch(0.3749 0.1366 301.4)
Decimal5187708

Properties

Color ToneViolet
Closest named colordarkslateblue ΔE 5.4
Closest web-safe color#663366
Hue268°
Saturation (HSL / HSV)51% / 68%
Lightness (HSL)32%
Brightness or Value (HSV)49%
Luminance (Rec.601 / Rec.709)24% / 21%
Relative luminance (WCAG)0.0464
Red / Green / Blue79 / 40 / 124

WCAG 2.2 Contrast Ratio

On White (#ffffff)
10.90:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.93: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 94.7 / -7.9 · As background with white / black text: Lc -98.7 / 9.2

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: #4f287c;
  --color-brand-oklch: oklch(37.49% 0.1366 301.4);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(79 40 124 / 50%); }
/* Tailwind CSS */
<div class="bg-[#4f287c] text-[#4f287c] border-[#4f287c]">