#4E2F7B#4E2F7B

#4E2F7B is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.4% C 0.125 H 299.3°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#4E2F7B
RGBrgb(78, 47, 123)
HSLhsl(264, 45%, 33%)
HSVhsv(264, 62%, 48%)
CMYKcmyk(36.6%, 61.8%, 0%, 51.8%)
CIE-LABlab(26.97, 31.44, -38.28)
CIE-LCHlch(26.97, 49.54, 309.40°)
OKLaboklab(38.38% 0.0609 -0.1086)
OKLCHoklch(38.38% 0.125 299.3)
XYZxyz(7.7327, 5.0827, 19.3087)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2F7B #5C7B2F
analogous
#2F367B #4E2F7B #742F7B
triadic
#4E2F7B #7B4E2F #2F7B4E
tetradic
#4E2F7B #7B2F36 #5C7B2F #2F7B74
square
#4E2F7B #7B2F36 #5C7B2F #2F7B74
split-complementary
#4E2F7B #7B742F #367B2F
monochromatic
#160D22 #321E4F #4E2F7B #6A40A7 #8962C3

Accessibility & contrast

On white

10.41
#4E2F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4E2F7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2F7B
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2F7B#FFFFFF#000000##FFFFFF
##4E2F7B1.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03407D
Deuteranopia (green-blind)
#153F79
Tritanopia (blue-blind)
#443F50
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4e2f7b;
/* rgb */ color: rgb(78, 47, 123);
/* oklch */ color: oklch(38.4% 0.125 299.3);
Tailwind
colors: {
  custom: {
    50: '#8369a2',
    500: '#4e2f7b',
    950: '#000000',
  },
}
SCSS
$custom: #4e2f7b;
$custom-light: #8369a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2f7b",
  "rgb": {
    "r": 78,
    "g": 47,
    "b": 123
  },
  "hsl": {
    "h": 264.474,
    "s": 44.706,
    "l": 33.333
  },
  "oklch": {
    "l": 0.38381,
    "c": 0.12451,
    "h": 299.3
  },
  "luminance": 0.05083
}

Semantic roles & 50–950 ramp

primary
#4E2F7B
secondary
#8AAA5C
accent
#D453A0
background
#F8F6FA
surface
#EFEBF3
border
#CAC6CD
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E2F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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