#4E2F77#4E2F77

#4E2F77 is a dark, moderate violet. Relative luminance 0.050; OKLCH L 38.1% C 0.119 H 300.7°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#4E2F77
RGBrgb(78, 47, 119)
HSLhsl(266, 43%, 33%)
HSVhsv(266, 61%, 47%)
CMYKcmyk(34.5%, 60.5%, 0%, 53.3%)
CIE-LABlab(26.69, 30.33, -36.20)
CIE-LCHlch(26.69, 47.22, 309.96°)
OKLaboklab(38.09% 0.0609 -0.1025)
OKLCHoklch(38.09% 0.119 300.7)
XYZxyz(7.4874, 4.9846, 18.0168)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2F77 #58772F
analogous
#2F3477 #4E2F77 #722F77
triadic
#4E2F77 #774E2F #2F774E
tetradic
#4E2F77 #772F34 #58772F #2F7772
square
#4E2F77 #772F34 #58772F #2F7772
split-complementary
#4E2F77 #77722F #34772F
monochromatic
#140C1F #311E4B #4E2F77 #6B40A3 #8A60C0

Accessibility & contrast

On white

10.52
#4E2F77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#4E2F77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2F77
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2F77#FFFFFF#000000##FFFFFF
##4E2F771.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C3F79
Deuteranopia (green-blind)
#1A3F75
Tritanopia (blue-blind)
#463E4E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4e2f77;
/* rgb */ color: rgb(78, 47, 119);
/* oklch */ color: oklch(38.1% 0.119 300.7);
Tailwind
colors: {
  custom: {
    50: '#82699f',
    500: '#4e2f77',
    950: '#000000',
  },
}
SCSS
$custom: #4e2f77;
$custom-light: #82699f;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2f77",
  "rgb": {
    "r": 78,
    "g": 47,
    "b": 119
  },
  "hsl": {
    "h": 265.833,
    "s": 43.373,
    "l": 32.549
  },
  "oklch": {
    "l": 0.38088,
    "c": 0.11924,
    "h": 300.7
  },
  "luminance": 0.04985
}

Semantic roles & 50–950 ramp

primary
#4E2F77
secondary
#86A75B
accent
#D3559D
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #4E2F77

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

Preview Lab → · Contrast checker → · Palette generator →

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