#4E2F6A#4E2F6A

#4E2F6A is a dark, moderate violet. Relative luminance 0.047; OKLCH L 37.2% C 0.102 H 306.3°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#4E2F6A
RGBrgb(78, 47, 106)
HSLhsl(272, 39%, 30%)
HSVhsv(272, 56%, 42%)
CMYKcmyk(26.4%, 55.7%, 0%, 58.4%)
CIE-LABlab(25.84, 26.80, -29.24)
CIE-LCHlch(25.84, 39.66, 312.50°)
OKLaboklab(37.19% 0.0604 -0.0821)
OKLCHoklch(37.19% 0.102 306.3)
XYZxyz(6.7594, 4.6934, 14.1827)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2F6A #4B6A2F
analogous
#302F6A #4E2F6A #6A2F69
triadic
#4E2F6A #6A4E2F #2F6A4E
tetradic
#4E2F6A #6A302F #4B6A2F #2F696A
square
#4E2F6A #6A302F #4B6A2F #2F696A
split-complementary
#4E2F6A #696A2F #2F6A30
monochromatic
#100915 #2F1C40 #4E2F6A #6D4294 #8C5CB7

Accessibility & contrast

On white

10.83
#4E2F6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#4E2F6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2F6A
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2F6A#FFFFFF#000000##FFFFFF
##4E2F6A1.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D3C6C
Deuteranopia (green-blind)
#263D69
Tritanopia (blue-blind)
#4A3A47
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4e2f6a;
/* rgb */ color: rgb(78, 47, 106);
/* oklch */ color: oklch(37.2% 0.102 306.3);
Tailwind
colors: {
  custom: {
    50: '#816995',
    500: '#4e2f6a',
    950: '#000000',
  },
}
SCSS
$custom: #4e2f6a;
$custom-light: #816995;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2f6a",
  "rgb": {
    "r": 78,
    "g": 47,
    "b": 106
  },
  "hsl": {
    "h": 271.525,
    "s": 38.562,
    "l": 30
  },
  "oklch": {
    "l": 0.37191,
    "c": 0.10195,
    "h": 306.3
  },
  "luminance": 0.04693
}

Semantic roles & 50–950 ramp

primary
#4E2F6A
secondary
#799B59
accent
#CE5991
background
#F8F6F9
surface
#EFEBF1
border
#CAC6CB
text
#0A060D
muted
#7C7A7E

Preview Lab

Preview with #4E2F6A

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

Preview Lab → · Contrast checker → · Palette generator →

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