#4E45F2

A color in the Violet family

#4e45f2 is a color in the Violet family: RGB(78, 69, 242), HSL(243°, 87%, 61%), CMYK(68%, 71%, 0%, 5%). Closest named color: royalblue. Contrast is 6.07:1 on white and 3.46:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#4e45f2
RGBrgb(78 69 242)
RGB (legacy)rgb(78, 69, 242)
RGB %rgb(31% 27% 95%)
HSLhsl(243 87% 61%)
HSV / HSBhsv(243, 71%, 95%)
HWBhwb(243 27% 5%)
CMYKcmyk(68%, 71%, 0%, 5%)
CIELAB (D50)lab(40.15 45.39 -87.03)
LCHlch(40.15 98.15 297.54)
OKLaboklab(0.5207 0.0251 -0.2454)
OKLCHoklch(0.5207 0.2467 275.85)
Decimal5129714

Properties

Color ToneViolet
Closest named colorroyalblue ΔE 7.9
Closest web-safe color#6633ff
Hue243°
Saturation (HSL / HSV)87% / 71%
Lightness (HSL)61%
Brightness or Value (HSV)95%
Luminance (Rec.601 / Rec.709)36% / 33%
Relative luminance (WCAG)0.1229
Red / Green / Blue78 / 69 / 242

WCAG 2.2 Contrast Ratio

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

APCA Contrast Lc (reference) — As text on white / black: Lc 79.4 / -22.4 · As background with white / black text: Lc -84.6 / 24.7

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: #4e45f2;
  --color-brand-oklch: oklch(52.07% 0.2467 275.85);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(78 69 242 / 50%); }
/* Tailwind CSS */
<div class="bg-[#4e45f2] text-[#4e45f2] border-[#4e45f2]">