#4E2E7C#4E2E7C

#4E2E7C is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.3% C 0.127 H 299.2°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#4E2E7C
RGBrgb(78, 46, 124)
HSLhsl(265, 46%, 33%)
HSVhsv(265, 63%, 49%)
CMYKcmyk(37.1%, 62.9%, 0%, 51.4%)
CIE-LABlab(26.82, 32.32, -39.16)
CIE-LCHlch(26.82, 50.77, 309.54°)
OKLaboklab(38.29% 0.0621 -0.1112)
OKLCHoklch(38.29% 0.127 299.2)
XYZxyz(7.7561, 5.0288, 19.6269)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2E7C #5C7C2E
analogous
#2E357C #4E2E7C #752E7C
triadic
#4E2E7C #7C4E2E #2E7C4E
tetradic
#4E2E7C #7C2E35 #5C7C2E #2E7C75
square
#4E2E7C #7C2E35 #5C7C2E #2E7C75
split-complementary
#4E2E7C #7C752E #357C2E
monochromatic
#160D23 #321D4F #4E2E7C #6A3FA9 #8960C4

Accessibility & contrast

On white

10.47
#4E2E7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#4E2E7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2E7C
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2E7C#FFFFFF#000000##FFFFFF
##4E2E7C1.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7E
Deuteranopia (green-blind)
#113F7A
Tritanopia (blue-blind)
#443F50
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4e2e7c;
/* rgb */ color: rgb(78, 46, 124);
/* oklch */ color: oklch(38.3% 0.127 299.2);
Tailwind
colors: {
  custom: {
    50: '#8368a2',
    500: '#4e2e7c',
    950: '#000000',
  },
}
SCSS
$custom: #4e2e7c;
$custom-light: #8368a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2e7c",
  "rgb": {
    "r": 78,
    "g": 46,
    "b": 124
  },
  "hsl": {
    "h": 264.615,
    "s": 45.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.38293,
    "c": 0.12738,
    "h": 299.2
  },
  "luminance": 0.05029
}

Semantic roles & 50–950 ramp

primary
#4E2E7C
secondary
#8AAB5B
accent
#D652A0
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E2E7C

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

Preview Lab → · Contrast checker → · Palette generator →

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