#4E2F8B#4E2F8B

#4E2F8B is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.6% C 0.145 H 294.3°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#4E2F8B
RGBrgb(78, 47, 139)
HSLhsl(260, 49%, 36%)
HSVhsv(260, 66%, 55%)
CMYKcmyk(43.9%, 66.2%, 0%, 45.5%)
CIE-LABlab(28.16, 36.01, -46.37)
CIE-LCHlch(28.16, 58.71, 307.83°)
OKLaboklab(39.62% 0.0598 -0.1324)
OKLCHoklch(39.62% 0.145 294.3)
XYZxyz(8.8173, 5.5166, 25.0213)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2F8B #6C8B2F
analogous
#2F3E8B #4E2F8B #7C2F8B
triadic
#4E2F8B #8B4E2F #2F8B4E
tetradic
#4E2F8B #8B2F3E #6C8B2F #2F8B7C
square
#4E2F8B #8B2F3E #6C8B2F #2F8B7C
split-complementary
#4E2F8B #8B7C2F #3E8B2F
monochromatic
#1B1030 #34205D #4E2F8B #683EB9 #8A68CC

Accessibility & contrast

On white

9.98
#4E2F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#4E2F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2F8B
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2F8B#FFFFFF#000000##FFFFFF
##4E2F8B1.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438E
Deuteranopia (green-blind)
#004189
Tritanopia (blue-blind)
#3D4458
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4e2f8b;
/* rgb */ color: rgb(78, 47, 139);
/* oklch */ color: oklch(39.6% 0.145 294.3);
Tailwind
colors: {
  custom: {
    50: '#8569ae',
    500: '#4e2f8b',
    950: '#000000',
  },
}
SCSS
$custom: #4e2f8b;
$custom-light: #8569ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2f8b",
  "rgb": {
    "r": 78,
    "g": 47,
    "b": 139
  },
  "hsl": {
    "h": 260.217,
    "s": 49.462,
    "l": 36.471
  },
  "oklch": {
    "l": 0.39623,
    "c": 0.14527,
    "h": 294.3
  },
  "luminance": 0.05517
}

Semantic roles & 50–950 ramp

primary
#4E2F8B
secondary
#98B363
accent
#D94FAA
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4E2F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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