#4E2A7C#4E2A7C

#4E2A7C is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.7% C 0.133 H 300.2°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#4E2A7C
RGBrgb(78, 42, 124)
HSLhsl(266, 49%, 33%)
HSVhsv(266, 66%, 49%)
CMYKcmyk(37.1%, 66.1%, 0%, 51.4%)
CIE-LABlab(25.95, 34.64, -40.55)
CIE-LCHlch(25.95, 53.33, 310.51°)
OKLaboklab(37.67% 0.0672 -0.1153)
OKLCHoklch(37.67% 0.133 300.2)
XYZxyz(7.6071, 4.7308, 19.5772)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2A7C #587C2A
analogous
#2A2F7C #4E2A7C #772A7C
triadic
#4E2A7C #7C4E2A #2A7C4E
tetradic
#4E2A7C #7C2A2F #587C2A #2A7C77
square
#4E2A7C #7C2A2F #587C2A #2A7C77
split-complementary
#4E2A7C #7C772A #2F7C2A
monochromatic
#140B21 #311B4E #4E2A7C #6B39AA #8A59C7

Accessibility & contrast

On white

10.79
#4E2A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#4E2A7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2A7C
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2A7C#FFFFFF#000000##FFFFFF
##4E2A7C1.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7F
Deuteranopia (green-blind)
#063D7A
Tritanopia (blue-blind)
#443C4F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4e2a7c;
/* rgb */ color: rgb(78, 42, 124);
/* oklch */ color: oklch(37.7% 0.133 300.2);
Tailwind
colors: {
  custom: {
    50: '#8366a2',
    500: '#4e2a7c',
    950: '#000000',
  },
}
SCSS
$custom: #4e2a7c;
$custom-light: #8366a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2a7c",
  "rgb": {
    "r": 78,
    "g": 42,
    "b": 124
  },
  "hsl": {
    "h": 266.341,
    "s": 49.398,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37666,
    "c": 0.13345,
    "h": 300.2
  },
  "luminance": 0.04731
}

Semantic roles & 50–950 ramp

primary
#4E2A7C
secondary
#86AD55
accent
#D94F9C
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E2A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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