#4B397F#4B397F

#4B397F is a dark, moderate violet. Relative luminance 0.060; OKLCH L 40.1% C 0.114 H 292.4°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#4B397F
RGBrgb(75, 57, 127)
HSLhsl(255, 38%, 36%)
HSVhsv(255, 55%, 50%)
CMYKcmyk(40.9%, 55.1%, 0%, 50.2%)
CIE-LABlab(29.30, 25.64, -37.07)
CIE-LCHlch(29.30, 45.08, 304.67°)
OKLaboklab(40.11% 0.0432 -0.1052)
OKLCHoklch(40.11% 0.114 292.4)
XYZxyz(8.1945, 5.9542, 20.7921)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B397F #6D7F39
analogous
#394A7F #4B397F #6E397F
triadic
#4B397F #7F4B39 #397F4B
tetradic
#4B397F #7F394A #6D7F39 #397F6E
square
#4B397F #7F394A #6D7F39 #397F6E
split-complementary
#4B397F #7F6E39 #4A7F39
monochromatic
#19132B #322655 #4B397F #644CA9 #8672C0

Accessibility & contrast

On white

9.59
#4B397F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#4B397F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B397F
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B397F#FFFFFF#000000##FFFFFF
##4B397F1.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4681
Deuteranopia (green-blind)
#1E447D
Tritanopia (blue-blind)
#3D4756
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4b397f;
/* rgb */ color: rgb(75, 57, 127);
/* oklch */ color: oklch(40.1% 0.114 292.4);
Tailwind
colors: {
  custom: {
    50: '#8170a4',
    500: '#4b397f',
    950: '#000000',
  },
}
SCSS
$custom: #4b397f;
$custom-light: #8170a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4b397f",
  "rgb": {
    "r": 75,
    "g": 57,
    "b": 127
  },
  "hsl": {
    "h": 255.429,
    "s": 38.043,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40106,
    "c": 0.11373,
    "h": 292.4
  },
  "luminance": 0.05954
}

Semantic roles & 50–950 ramp

primary
#4B397F
secondary
#99A96B
accent
#CE5AB0
background
#F8F6FA
surface
#EFECF4
border
#CAC7CE
text
#0A070F
muted
#7C7A7F

Preview Lab

Preview with #4B397F

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

Preview Lab → · Contrast checker → · Palette generator →

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