#4E2E82#4E2E82

#4E2E82 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.8% C 0.135 H 297.2°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#4E2E82
RGBrgb(78, 46, 130)
HSLhsl(263, 48%, 35%)
HSVhsv(263, 65%, 51%)
CMYKcmyk(40%, 64.6%, 0%, 49%)
CIE-LABlab(27.26, 34.01, -42.22)
CIE-LCHlch(27.26, 54.21, 308.85°)
OKLaboklab(38.75% 0.0618 -0.1202)
OKLCHoklch(38.75% 0.135 297.2)
XYZxyz(8.1471, 5.1853, 21.6864)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2E82 #62822E
analogous
#2E3882 #4E2E82 #782E82
triadic
#4E2E82 #824E2E #2E824E
tetradic
#4E2E82 #822E38 #62822E #2E8278
square
#4E2E82 #822E38 #62822E #2E8278
split-complementary
#4E2E82 #82782E #38822E
monochromatic
#180E28 #331E55 #4E2E82 #693EAF #8963C8

Accessibility & contrast

On white

10.31
#4E2E82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4E2E82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2E82
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2E82#FFFFFF#000000##FFFFFF
##4E2E821.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004185
Deuteranopia (green-blind)
#023F80
Tritanopia (blue-blind)
#414153
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4e2e82;
/* rgb */ color: rgb(78, 46, 130);
/* oklch */ color: oklch(38.8% 0.135 297.2);
Tailwind
colors: {
  custom: {
    50: '#8468a7',
    500: '#4e2e82',
    950: '#000000',
  },
}
SCSS
$custom: #4e2e82;
$custom-light: #8468a7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2e82",
  "rgb": {
    "r": 78,
    "g": 46,
    "b": 130
  },
  "hsl": {
    "h": 262.857,
    "s": 47.727,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38752,
    "c": 0.13515,
    "h": 297.2
  },
  "luminance": 0.05185
}

Semantic roles & 50–950 ramp

primary
#4E2E82
secondary
#90AE5D
accent
#D750A4
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E2E82

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

Preview Lab → · Contrast checker → · Palette generator →

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