#4E2675#4E2675

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

Color values

HEX#4E2675
RGBrgb(78, 38, 117)
HSLhsl(270, 51%, 30%)
HSVhsv(270, 68%, 46%)
CMYKcmyk(33.3%, 67.5%, 0%, 54.1%)
CIE-LABlab(24.61, 35.00, -38.27)
CIE-LCHlch(24.61, 51.86, 312.44°)
OKLaboklab(36.53% 0.0728 -0.1086)
OKLCHoklch(36.53% 0.131 303.9)
XYZxyz(7.0452, 4.2903, 17.2831)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2675 #4D7526
analogous
#262675 #4E2675 #752674
triadic
#4E2675 #754E26 #26754E
tetradic
#4E2675 #752626 #4D7526 #267475
square
#4E2675 #752626 #4D7526 #267475
split-complementary
#4E2675 #747526 #267526
monochromatic
#100819 #2F1747 #4E2675 #6D35A3 #8B4FC6

Accessibility & contrast

On white

11.30
#4E2675 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#4E2675 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2675
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2675#FFFFFF#000000##FFFFFF
##4E26751.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A77
Deuteranopia (green-blind)
#0D3A73
Tritanopia (blue-blind)
#47374A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4e2675;
/* rgb */ color: rgb(78, 38, 117);
/* oklch */ color: oklch(36.5% 0.131 303.9);
Tailwind
colors: {
  custom: {
    50: '#83639d',
    500: '#4e2675',
    950: '#000000',
  },
}
SCSS
$custom: #4e2675;
$custom-light: #83639d;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2675",
  "rgb": {
    "r": 78,
    "g": 38,
    "b": 117
  },
  "hsl": {
    "h": 270.38,
    "s": 50.968,
    "l": 30.392
  },
  "oklch": {
    "l": 0.36529,
    "c": 0.13074,
    "h": 303.9
  },
  "luminance": 0.0429
}

Semantic roles & 50–950 ramp

primary
#4E2675
secondary
#7BA74F
accent
#DA4D93
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B050E
muted
#7C7A7E

Preview Lab

Preview with #4E2675

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

Preview Lab → · Contrast checker → · Palette generator →

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