#4E4172#4E4172

#4E4172 is a dark, moderate violet. Relative luminance 0.066; OKLCH L 41.1% C 0.081 H 294.8°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#4E4172
RGBrgb(78, 65, 114)
HSLhsl(256, 27%, 35%)
HSVhsv(256, 43%, 45%)
CMYKcmyk(31.6%, 43%, 0%, 55.3%)
CIE-LABlab(30.91, 17.53, -26.32)
CIE-LCHlch(30.91, 31.62, 303.67°)
OKLaboklab(41.14% 0.034 -0.0736)
OKLCHoklch(41.14% 0.081 294.8)
XYZxyz(8.0687, 6.6151, 16.7681)
Luminance0.0662 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E4172 #657241
analogous
#414D72 #4E4172 #664172
triadic
#4E4172 #724E41 #41724E
tetradic
#4E4172 #72414D #657241 #417266
square
#4E4172 #72414D #657241 #417266
split-complementary
#4E4172 #726641 #4D7241
monochromatic
#191524 #332B4B #4E4172 #695799 #897AB3

Accessibility & contrast

On white

9.04
#4E4172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#4E4172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E4172
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E4172#FFFFFF#000000##FFFFFF
##4E41721.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#334974
Deuteranopia (green-blind)
#354871
Tritanopia (blue-blind)
#464A54
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4e4172;
/* rgb */ color: rgb(78, 65, 114);
/* oklch */ color: oklch(41.1% 0.081 294.8);
Tailwind
colors: {
  custom: {
    50: '#81759b',
    500: '#4e4172',
    950: '#000000',
  },
}
SCSS
$custom: #4e4172;
$custom-light: #81759b;
$custom-dark: #000000;
JSON
{
  "hex": "#4e4172",
  "rgb": {
    "r": 78,
    "g": 65,
    "b": 114
  },
  "hsl": {
    "h": 255.918,
    "s": 27.374,
    "l": 35.098
  },
  "oklch": {
    "l": 0.4114,
    "c": 0.08112,
    "h": 294.8
  },
  "luminance": 0.06615
}

Semantic roles & 50–950 ramp

primary
#4E4172
secondary
#929E70
accent
#C464AA
background
#F7F7F9
surface
#EEEDF2
border
#C9C8CC
text
#0A080E
muted
#7C7B7E

Preview Lab

Preview with #4E4172

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

Preview Lab → · Contrast checker → · Palette generator →

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