#4F397E#4F397E

#4F397E is a dark, moderate violet. Relative luminance 0.061; OKLCH L 40.4% C 0.113 H 295.7°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#4F397E
RGBrgb(79, 57, 126)
HSLhsl(259, 38%, 36%)
HSVhsv(259, 55%, 49%)
CMYKcmyk(37.3%, 54.8%, 0%, 50.6%)
CIE-LABlab(29.65, 26.41, -35.86)
CIE-LCHlch(29.65, 44.53, 306.37°)
OKLaboklab(40.45% 0.0487 -0.1015)
OKLCHoklch(40.45% 0.113 295.7)
XYZxyz(8.4525, 6.0947, 20.4657)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F397E #687E39
analogous
#39457E #4F397E #71397E
triadic
#4F397E #7E4F39 #397E4F
tetradic
#4F397E #7E3945 #687E39 #397E71
square
#4F397E #7E3945 #687E39 #397E71
split-complementary
#4F397E #7E7139 #457E39
monochromatic
#1A132A #352654 #4F397E #694CA8 #8B72BF

Accessibility & contrast

On white

9.46
#4F397E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#4F397E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F397E
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F397E#FFFFFF#000000##FFFFFF
##4F397E1.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4680
Deuteranopia (green-blind)
#22457C
Tritanopia (blue-blind)
#444756
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4f397e;
/* rgb */ color: rgb(79, 57, 126);
/* oklch */ color: oklch(40.4% 0.113 295.7);
Tailwind
colors: {
  custom: {
    50: '#8370a4',
    500: '#4f397e',
    950: '#000000',
  },
}
SCSS
$custom: #4f397e;
$custom-light: #8370a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4f397e",
  "rgb": {
    "r": 79,
    "g": 57,
    "b": 126
  },
  "hsl": {
    "h": 259.13,
    "s": 37.705,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40447,
    "c": 0.11258,
    "h": 295.7
  },
  "luminance": 0.06095
}

Semantic roles & 50–950 ramp

primary
#4F397E
secondary
#95A86A
accent
#CE5AA9
background
#F8F6FA
surface
#EFECF4
border
#CAC7CE
text
#0B070F
muted
#7C7A7F

Preview Lab

Preview with #4F397E

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

Preview Lab → · Contrast checker → · Palette generator →

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