#4E2F9C#4E2F9C

#4E2F9C is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.1% C 0.167 H 290.1°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#4E2F9C
RGBrgb(78, 47, 156)
HSLhsl(257, 54%, 40%)
HSVhsv(257, 70%, 61%)
CMYKcmyk(50%, 69.9%, 0%, 38.8%)
CIE-LABlab(29.54, 40.96, -54.56)
CIE-LCHlch(29.54, 68.22, 306.90°)
OKLaboklab(41.05% 0.0573 -0.1565)
OKLCHoklch(41.05% 0.167 290.1)
XYZxyz(10.1574, 6.0526, 32.0791)
Luminance0.0605 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2F9C #7D9C2F
analogous
#2F479C #4E2F9C #852F9C
triadic
#4E2F9C #9C4E2F #2F9C4E
tetradic
#4E2F9C #9C2F47 #7D9C2F #2F9C85
square
#4E2F9C #9C2F47 #7D9C2F #2F9C85
split-complementary
#4E2F9C #9C852F #479C2F
monochromatic
#1F133E #36216D #4E2F9C #6842C6 #8D71D4

Accessibility & contrast

On white

9.50
#4E2F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#4E2F9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2F9C
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2F9C#FFFFFF#000000##FFFFFF
##4E2F9C1.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489F
Deuteranopia (green-blind)
#00439A
Tritanopia (blue-blind)
#344B62
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4e2f9c;
/* rgb */ color: rgb(78, 47, 156);
/* oklch */ color: oklch(41.1% 0.167 290.1);
Tailwind
colors: {
  custom: {
    50: '#876aba',
    500: '#4e2f9c',
    950: '#000000',
  },
}
SCSS
$custom: #4e2f9c;
$custom-light: #876aba;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2f9c",
  "rgb": {
    "r": 78,
    "g": 47,
    "b": 156
  },
  "hsl": {
    "h": 257.064,
    "s": 53.695,
    "l": 39.804
  },
  "oklch": {
    "l": 0.41053,
    "c": 0.16665,
    "h": 290.1
  },
  "luminance": 0.06053
}

Semantic roles & 50–950 ramp

primary
#4E2F9C
secondary
#A5BC6B
accent
#DD4BB3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4E2F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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