#4E3274#4E3274

#4E3274 is a dark, moderate violet. Relative luminance 0.052; OKLCH L 38.4% C 0.110 H 300.9°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#4E3274
RGBrgb(78, 50, 116)
HSLhsl(265, 40%, 33%)
HSVhsv(265, 57%, 45%)
CMYKcmyk(32.8%, 56.9%, 0%, 54.5%)
CIE-LABlab(27.19, 27.66, -33.49)
CIE-LCHlch(27.19, 43.44, 309.56°)
OKLaboklab(38.39% 0.0567 -0.0946)
OKLCHoklch(38.39% 0.11 300.9)
XYZxyz(7.4341, 5.1618, 17.1243)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3274 #587432
analogous
#323774 #4E3274 #6F3274
triadic
#4E3274 #744E32 #32744E
tetradic
#4E3274 #743237 #587432 #32746F
square
#4E3274 #743237 #587432 #32746F
split-complementary
#4E3274 #746F32 #377432
monochromatic
#140D1E #312049 #4E3274 #6B449F #8A64BC

Accessibility & contrast

On white

10.33
#4E3274 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4E3274 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3274
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3274#FFFFFF#000000##FFFFFF
##4E32741.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184076
Deuteranopia (green-blind)
#224072
Tritanopia (blue-blind)
#463F4E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4e3274;
/* rgb */ color: rgb(78, 50, 116);
/* oklch */ color: oklch(38.4% 0.110 300.9);
Tailwind
colors: {
  custom: {
    50: '#826b9c',
    500: '#4e3274',
    950: '#000000',
  },
}
SCSS
$custom: #4e3274;
$custom-light: #826b9c;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3274",
  "rgb": {
    "r": 78,
    "g": 50,
    "b": 116
  },
  "hsl": {
    "h": 265.455,
    "s": 39.759,
    "l": 32.549
  },
  "oklch": {
    "l": 0.38392,
    "c": 0.11024,
    "h": 300.9
  },
  "luminance": 0.05162
}

Semantic roles & 50–950 ramp

primary
#4E3274
secondary
#86A45E
accent
#D0589D
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #4E3274

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

Preview Lab → · Contrast checker → · Palette generator →

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