#4E2F7A#4E2F7A

#4E2F7A is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.3% C 0.123 H 299.6°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#4E2F7A
RGBrgb(78, 47, 122)
HSLhsl(265, 44%, 33%)
HSVhsv(265, 61%, 48%)
CMYKcmyk(36.1%, 61.5%, 0%, 52.2%)
CIE-LABlab(26.90, 31.16, -37.76)
CIE-LCHlch(26.90, 48.96, 309.53°)
OKLaboklab(38.31% 0.0609 -0.1071)
OKLCHoklch(38.31% 0.123 299.6)
XYZxyz(7.6704, 5.0578, 18.9807)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2F7A #5B7A2F
analogous
#2F357A #4E2F7A #732F7A
triadic
#4E2F7A #7A4E2F #2F7A4E
tetradic
#4E2F7A #7A2F35 #5B7A2F #2F7A73
square
#4E2F7A #7A2F35 #5B7A2F #2F7A73
split-complementary
#4E2F7A #7A732F #357A2F
monochromatic
#160D22 #321E4E #4E2F7A #6A40A6 #8961C2

Accessibility & contrast

On white

10.44
#4E2F7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2F7A
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2F7A#FFFFFF#000000##FFFFFF
##4E2F7A1.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#053F7C
Deuteranopia (green-blind)
#163F78
Tritanopia (blue-blind)
#453F4F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4e2f7a;
/* rgb */ color: rgb(78, 47, 122);
/* oklch */ color: oklch(38.3% 0.123 299.6);
Tailwind
colors: {
  custom: {
    50: '#8369a1',
    500: '#4e2f7a',
    950: '#000000',
  },
}
SCSS
$custom: #4e2f7a;
$custom-light: #8369a1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2f7a",
  "rgb": {
    "r": 78,
    "g": 47,
    "b": 122
  },
  "hsl": {
    "h": 264.8,
    "s": 44.379,
    "l": 33.137
  },
  "oklch": {
    "l": 0.38307,
    "c": 0.1232,
    "h": 299.6
  },
  "luminance": 0.05058
}

Semantic roles & 50–950 ramp

primary
#4E2F7A
secondary
#89A95C
accent
#D4549F
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060F
muted
#7C7A7E

Preview Lab

Preview with #4E2F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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