#4F398E#4F398E

#4F398E is a dark, vivid violet. Relative luminance 0.065; OKLCH L 41.6% C 0.135 H 291.3°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#4F398E
RGBrgb(79, 57, 142)
HSLhsl(256, 43%, 39%)
HSVhsv(256, 60%, 56%)
CMYKcmyk(44.4%, 59.9%, 0%, 44.3%)
CIE-LABlab(30.74, 31.14, -44.04)
CIE-LCHlch(30.74, 53.94, 305.26°)
OKLaboklab(41.6% 0.0491 -0.1255)
OKLCHoklch(41.6% 0.135 291.3)
XYZxyz(9.5687, 6.5412, 26.3444)
Luminance0.0654 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F398E #788E39
analogous
#394E8E #4F398E #7A398E
triadic
#4F398E #8E4F39 #398E4F
tetradic
#4F398E #8E394E #788E39 #398E7A
square
#4F398E #8E394E #788E39 #398E7A
split-complementary
#4F398E #8E7A39 #4E8E39
monochromatic
#1E1637 #372762 #4F398E #684DB7 #8D78C9

Accessibility & contrast

On white

9.10
#4F398E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#4F398E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F398E
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F398E#FFFFFF#000000##FFFFFF
##4F398E1.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A91
Deuteranopia (green-blind)
#07478C
Tritanopia (blue-blind)
#3D4C5E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4f398e;
/* rgb */ color: rgb(79, 57, 142);
/* oklch */ color: oklch(41.6% 0.135 291.3);
Tailwind
colors: {
  custom: {
    50: '#8570b0',
    500: '#4f398e',
    950: '#000000',
  },
}
SCSS
$custom: #4f398e;
$custom-light: #8570b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f398e",
  "rgb": {
    "r": 79,
    "g": 57,
    "b": 142
  },
  "hsl": {
    "h": 255.529,
    "s": 42.714,
    "l": 39.02
  },
  "oklch": {
    "l": 0.41599,
    "c": 0.13478,
    "h": 291.3
  },
  "luminance": 0.06542
}

Semantic roles & 50–950 ramp

primary
#4F398E
secondary
#A1B271
accent
#D255B2
background
#F8F6FA
surface
#F0ECF5
border
#CBC7CF
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4F398E

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

Preview Lab → · Contrast checker → · Palette generator →

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