#4E3277#4E3277

#4E3277 is a dark, moderate violet. Relative luminance 0.052; OKLCH L 38.6% C 0.114 H 299.8°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#4E3277
RGBrgb(78, 50, 119)
HSLhsl(264, 41%, 33%)
HSVhsv(264, 58%, 47%)
CMYKcmyk(34.5%, 58%, 0%, 53.3%)
CIE-LABlab(27.39, 28.50, -35.08)
CIE-LCHlch(27.39, 45.20, 309.09°)
OKLaboklab(38.6% 0.0568 -0.0992)
OKLCHoklch(38.6% 0.114 299.8)
XYZxyz(7.6115, 5.2328, 18.0582)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3277 #5B7732
analogous
#323877 #4E3277 #703277
triadic
#4E3277 #774E32 #32774E
tetradic
#4E3277 #773238 #5B7732 #327770
square
#4E3277 #773238 #5B7732 #327770
split-complementary
#4E3277 #777032 #387732
monochromatic
#160E21 #32204C #4E3277 #6A44A2 #8965BE

Accessibility & contrast

On white

10.26
#4E3277 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#4E3277 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3277
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3277#FFFFFF#000000##FFFFFF
##4E32771.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154179
Deuteranopia (green-blind)
#1F4075
Tritanopia (blue-blind)
#45404F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4e3277;
/* rgb */ color: rgb(78, 50, 119);
/* oklch */ color: oklch(38.6% 0.114 299.8);
Tailwind
colors: {
  custom: {
    50: '#826b9f',
    500: '#4e3277',
    950: '#000000',
  },
}
SCSS
$custom: #4e3277;
$custom-light: #826b9f;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3277",
  "rgb": {
    "r": 78,
    "g": 50,
    "b": 119
  },
  "hsl": {
    "h": 264.348,
    "s": 40.828,
    "l": 33.137
  },
  "oklch": {
    "l": 0.386,
    "c": 0.11433,
    "h": 299.8
  },
  "luminance": 0.05233
}

Semantic roles & 50–950 ramp

primary
#4E3277
secondary
#89A65F
accent
#D1579F
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #4E3277

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

Preview Lab → · Contrast checker → · Palette generator →

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