#4E2F8C#4E2F8C

#4E2F8C is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.7% C 0.147 H 294.0°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#4E2F8C
RGBrgb(78, 47, 140)
HSLhsl(260, 50%, 37%)
HSVhsv(260, 66%, 55%)
CMYKcmyk(44.3%, 66.4%, 0%, 45.1%)
CIE-LABlab(28.24, 36.30, -46.86)
CIE-LCHlch(28.24, 59.27, 307.76°)
OKLaboklab(39.7% 0.0597 -0.1338)
OKLCHoklch(39.7% 0.147 294)
XYZxyz(8.8907, 5.5459, 25.4079)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2F8C #6D8C2F
analogous
#2F3F8C #4E2F8C #7D2F8C
triadic
#4E2F8C #8C4E2F #2F8C4E
tetradic
#4E2F8C #8C2F3F #6D8C2F #2F8C7D
square
#4E2F8C #8C2F3F #6D8C2F #2F8C7D
split-complementary
#4E2F8C #8C7D2F #3F8C2F
monochromatic
#1B1030 #34205E #4E2F8C #683EBA #8A69CD

Accessibility & contrast

On white

9.96
#4E2F8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#4E2F8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2F8C
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2F8C#FFFFFF#000000##FFFFFF
##4E2F8C1.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448F
Deuteranopia (green-blind)
#00418A
Tritanopia (blue-blind)
#3D4559
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4e2f8c;
/* rgb */ color: rgb(78, 47, 140);
/* oklch */ color: oklch(39.7% 0.147 294.0);
Tailwind
colors: {
  custom: {
    50: '#8569ae',
    500: '#4e2f8c',
    950: '#000000',
  },
}
SCSS
$custom: #4e2f8c;
$custom-light: #8569ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2f8c",
  "rgb": {
    "r": 78,
    "g": 47,
    "b": 140
  },
  "hsl": {
    "h": 260,
    "s": 49.733,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39704,
    "c": 0.14654,
    "h": 294
  },
  "luminance": 0.05546
}

Semantic roles & 50–950 ramp

primary
#4E2F8C
secondary
#99B463
accent
#D94FAB
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4E2F8C

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

Preview Lab → · Contrast checker → · Palette generator →

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