#4F397C#4F397C

#4F397C is a dark, moderate violet. Relative luminance 0.060; OKLCH L 40.3% C 0.110 H 296.3°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#4F397C
RGBrgb(79, 57, 124)
HSLhsl(260, 37%, 35%)
HSVhsv(260, 54%, 49%)
CMYKcmyk(36.3%, 54%, 0%, 51.4%)
CIE-LABlab(29.52, 25.83, -34.81)
CIE-LCHlch(29.52, 43.35, 306.58°)
OKLaboklab(40.31% 0.0486 -0.0984)
OKLCHoklch(40.31% 0.11 296.3)
XYZxyz(8.3248, 6.0436, 19.7928)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F397C #667C39
analogous
#39447C #4F397C #70397C
triadic
#4F397C #7C4F39 #397C4F
tetradic
#4F397C #7C3944 #667C39 #397C70
square
#4F397C #7C3944 #667C39 #397C70
split-complementary
#4F397C #7C7039 #447C39
monochromatic
#1A1228 #342652 #4F397C #6A4CA6 #8B71BE

Accessibility & contrast

On white

9.51
#4F397C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#4F397C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F397C
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F397C#FFFFFF#000000##FFFFFF
##4F397C1.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F467E
Deuteranopia (green-blind)
#24457A
Tritanopia (blue-blind)
#454655
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4f397c;
/* rgb */ color: rgb(79, 57, 124);
/* oklch */ color: oklch(40.3% 0.110 296.3);
Tailwind
colors: {
  custom: {
    50: '#8370a2',
    500: '#4f397c',
    950: '#000000',
  },
}
SCSS
$custom: #4f397c;
$custom-light: #8370a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4f397c",
  "rgb": {
    "r": 79,
    "g": 57,
    "b": 124
  },
  "hsl": {
    "h": 259.701,
    "s": 37.017,
    "l": 35.49
  },
  "oklch": {
    "l": 0.4031,
    "c": 0.10976,
    "h": 296.3
  },
  "luminance": 0.06044
}

Semantic roles & 50–950 ramp

primary
#4F397C
secondary
#93A76A
accent
#CD5BA8
background
#F8F6FA
surface
#EFECF3
border
#CAC7CD
text
#0B070F
muted
#7C7A7F

Preview Lab

Preview with #4F397C

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

Preview Lab → · Contrast checker → · Palette generator →

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