#4E306A#4E306A

#4E306A is a dark, moderate violet. Relative luminance 0.048; OKLCH L 37.4% C 0.100 H 306.0°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#4E306A
RGBrgb(78, 48, 106)
HSLhsl(271, 38%, 30%)
HSVhsv(271, 55%, 42%)
CMYKcmyk(26.4%, 54.7%, 0%, 58.4%)
CIE-LABlab(26.08, 26.18, -28.86)
CIE-LCHlch(26.08, 38.96, 312.21°)
OKLaboklab(37.37% 0.0589 -0.081)
OKLCHoklch(37.37% 0.1 306)
XYZxyz(6.7998, 4.7743, 14.1962)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E306A #4C6A30
analogous
#31306A #4E306A #6A3069
triadic
#4E306A #6A4E30 #306A4E
tetradic
#4E306A #6A3130 #4C6A30 #30696A
square
#4E306A #6A3130 #4C6A30 #30696A
split-complementary
#4E306A #696A30 #306A31
monochromatic
#100A16 #2F1D40 #4E306A #6D4394 #8C5EB6

Accessibility & contrast

On white

10.74
#4E306A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#4E306A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E306A
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E306A#FFFFFF#000000##FFFFFF
##4E306A1.0010.741.9510.74
#FFFFFF10.741.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E3D6C
Deuteranopia (green-blind)
#273E69
Tritanopia (blue-blind)
#4A3A48
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4e306a;
/* rgb */ color: rgb(78, 48, 106);
/* oklch */ color: oklch(37.4% 0.100 306.0);
Tailwind
colors: {
  custom: {
    50: '#816995',
    500: '#4e306a',
    950: '#000000',
  },
}
SCSS
$custom: #4e306a;
$custom-light: #816995;
$custom-dark: #000000;
JSON
{
  "hex": "#4e306a",
  "rgb": {
    "r": 78,
    "g": 48,
    "b": 106
  },
  "hsl": {
    "h": 271.034,
    "s": 37.662,
    "l": 30.196
  },
  "oklch": {
    "l": 0.37368,
    "c": 0.10017,
    "h": 306
  },
  "luminance": 0.04774
}

Semantic roles & 50–950 ramp

primary
#4E306A
secondary
#7A9B5A
accent
#CE5A92
background
#F8F6F9
surface
#EFEBF1
border
#CAC6CB
text
#0A060D
muted
#7C7A7E

Preview Lab

Preview with #4E306A

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

Preview Lab → · Contrast checker → · Palette generator →

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