#4E2F82#4E2F82

#4E2F82 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 38.9% C 0.134 H 296.9°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#4E2F82
RGBrgb(78, 47, 130)
HSLhsl(262, 47%, 35%)
HSVhsv(262, 64%, 51%)
CMYKcmyk(40%, 63.8%, 0%, 49%)
CIE-LABlab(27.47, 33.42, -41.87)
CIE-LCHlch(27.47, 53.57, 308.60°)
OKLaboklab(38.91% 0.0606 -0.1192)
OKLCHoklch(38.91% 0.134 296.9)
XYZxyz(8.1866, 5.2643, 21.6996)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2F82 #63822F
analogous
#2F3982 #4E2F82 #782F82
triadic
#4E2F82 #824E2F #2F824E
tetradic
#4E2F82 #822F39 #63822F #2F8278
square
#4E2F82 #822F39 #63822F #2F8278
split-complementary
#4E2F82 #82782F #39822F
monochromatic
#180E28 #331F55 #4E2F82 #693FAF #8964C7

Accessibility & contrast

On white

10.23
#4E2F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2F82
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2F82#FFFFFF#000000##FFFFFF
##4E2F821.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004185
Deuteranopia (green-blind)
#054080
Tritanopia (blue-blind)
#414154
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4e2f82;
/* rgb */ color: rgb(78, 47, 130);
/* oklch */ color: oklch(38.9% 0.134 296.9);
Tailwind
colors: {
  custom: {
    50: '#8469a7',
    500: '#4e2f82',
    950: '#000000',
  },
}
SCSS
$custom: #4e2f82;
$custom-light: #8469a7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2f82",
  "rgb": {
    "r": 78,
    "g": 47,
    "b": 130
  },
  "hsl": {
    "h": 262.41,
    "s": 46.893,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38911,
    "c": 0.13366,
    "h": 296.9
  },
  "luminance": 0.05264
}

Semantic roles & 50–950 ramp

primary
#4E2F82
secondary
#90AE5F
accent
#D751A5
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E2F82

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

Preview Lab → · Contrast checker → · Palette generator →

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