#4F389E#4F389E

#4F389E is a dark, vivid violet. Relative luminance 0.070; OKLCH L 42.7% C 0.158 H 288.2°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#4F389E
RGBrgb(79, 56, 158)
HSLhsl(254, 48%, 42%)
HSVhsv(254, 65%, 62%)
CMYKcmyk(50%, 64.6%, 0%, 38%)
CIE-LABlab(31.71, 36.58, -52.23)
CIE-LCHlch(31.71, 63.77, 305.00°)
OKLaboklab(42.69% 0.0493 -0.1496)
OKLCHoklch(42.69% 0.158 288.2)
XYZxyz(10.8084, 6.9588, 33.1148)
Luminance0.0696 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F389E #879E38
analogous
#38549E #4F389E #82389E
triadic
#4F389E #9E4F38 #389E4F
tetradic
#4F389E #9E3854 #879E38 #389E82
square
#4F389E #9E3854 #879E38 #389E82
split-complementary
#4F389E #9E8238 #549E38
monochromatic
#221844 #382871 #4F389E #6B52C2 #917FD2

Accessibility & contrast

On white

8.78
#4F389E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#4F389E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F389E
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F389E#FFFFFF#000000##FFFFFF
##4F389E1.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA1
Deuteranopia (green-blind)
#00489C
Tritanopia (blue-blind)
#345066
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4f389e;
/* rgb */ color: rgb(79, 56, 158);
/* oklch */ color: oklch(42.7% 0.158 288.2);
Tailwind
colors: {
  custom: {
    50: '#8770bb',
    500: '#4f389e',
    950: '#000000',
  },
}
SCSS
$custom: #4f389e;
$custom-light: #8770bb;
$custom-dark: #000000;
JSON
{
  "hex": "#4f389e",
  "rgb": {
    "r": 79,
    "g": 56,
    "b": 158
  },
  "hsl": {
    "h": 253.529,
    "s": 47.664,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42691,
    "c": 0.15752,
    "h": 288.2
  },
  "luminance": 0.06959
}

Semantic roles & 50–950 ramp

primary
#4F389E
secondary
#ACBB77
accent
#D751B9
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4F389E

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

Preview Lab → · Contrast checker → · Palette generator →

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