#4E2674#4E2674

#4E2674 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.5% C 0.130 H 304.3°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#4E2674
RGBrgb(78, 38, 116)
HSLhsl(271, 51%, 30%)
HSVhsv(271, 67%, 45%)
CMYKcmyk(32.8%, 67.2%, 0%, 54.5%)
CIE-LABlab(24.53, 34.73, -37.75)
CIE-LCHlch(24.53, 51.30, 312.61°)
OKLaboklab(36.45% 0.0729 -0.107)
OKLCHoklch(36.45% 0.13 304.3)
XYZxyz(6.9867, 4.2669, 16.9751)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2674 #4C7426
analogous
#272674 #4E2674 #742673
triadic
#4E2674 #744E26 #26744E
tetradic
#4E2674 #742726 #4C7426 #267374
square
#4E2674 #742726 #4C7426 #267374
split-complementary
#4E2674 #737426 #267427
monochromatic
#100818 #2F1746 #4E2674 #6D35A2 #8C4FC5

Accessibility & contrast

On white

11.33
#4E2674 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#4E2674 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2674
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2674#FFFFFF#000000##FFFFFF
##4E26741.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003976
Deuteranopia (green-blind)
#0F3A72
Tritanopia (blue-blind)
#473749
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4e2674;
/* rgb */ color: rgb(78, 38, 116);
/* oklch */ color: oklch(36.5% 0.130 304.3);
Tailwind
colors: {
  custom: {
    50: '#83639d',
    500: '#4e2674',
    950: '#000000',
  },
}
SCSS
$custom: #4e2674;
$custom-light: #83639d;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2674",
  "rgb": {
    "r": 78,
    "g": 38,
    "b": 116
  },
  "hsl": {
    "h": 270.769,
    "s": 50.649,
    "l": 30.196
  },
  "oklch": {
    "l": 0.36452,
    "c": 0.12953,
    "h": 304.3
  },
  "luminance": 0.04267
}

Semantic roles & 50–950 ramp

primary
#4E2674
secondary
#7AA64F
accent
#DA4E92
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B050E
muted
#7C7A7E

Preview Lab

Preview with #4E2674

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

Preview Lab → · Contrast checker → · Palette generator →

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