#4F397A#4F397A

#4F397A is a dark, moderate violet. Relative luminance 0.060; OKLCH L 40.2% C 0.107 H 296.9°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#4F397A
RGBrgb(79, 57, 122)
HSLhsl(260, 36%, 35%)
HSVhsv(260, 53%, 48%)
CMYKcmyk(35.2%, 53.3%, 0%, 52.2%)
CIE-LABlab(29.40, 25.26, -33.75)
CIE-LCHlch(29.40, 42.16, 306.81°)
OKLaboklab(40.18% 0.0484 -0.0953)
OKLCHoklch(40.18% 0.107 296.9)
XYZxyz(8.1996, 5.9935, 19.1335)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F397A #647A39
analogous
#39437A #4F397A #70397A
triadic
#4F397A #7A4F39 #397A4F
tetradic
#4F397A #7A3943 #647A39 #397A70
square
#4F397A #7A3943 #647A39 #397A70
split-complementary
#4F397A #7A7039 #437A39
monochromatic
#191227 #342650 #4F397A #6A4CA4 #8A71BD

Accessibility & contrast

On white

9.55
#4F397A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#4F397A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F397A
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F397A#FFFFFF#000000##FFFFFF
##4F397A1.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21467C
Deuteranopia (green-blind)
#264478
Tritanopia (blue-blind)
#454654
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4f397a;
/* rgb */ color: rgb(79, 57, 122);
/* oklch */ color: oklch(40.2% 0.107 296.9);
Tailwind
colors: {
  custom: {
    50: '#8370a1',
    500: '#4f397a',
    950: '#000000',
  },
}
SCSS
$custom: #4f397a;
$custom-light: #8370a1;
$custom-dark: #000000;
JSON
{
  "hex": "#4f397a",
  "rgb": {
    "r": 79,
    "g": 57,
    "b": 122
  },
  "hsl": {
    "h": 260.308,
    "s": 36.313,
    "l": 35.098
  },
  "oklch": {
    "l": 0.40176,
    "c": 0.10692,
    "h": 296.9
  },
  "luminance": 0.05994
}

Semantic roles & 50–950 ramp

primary
#4F397A
secondary
#91A669
accent
#CC5BA6
background
#F8F6F9
surface
#EFECF2
border
#CAC7CC
text
#0B070F
muted
#7C7A7E

Preview Lab

Preview with #4F397A

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

Preview Lab → · Contrast checker → · Palette generator →

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