#4E306B#4E306B

#4E306B is a dark, moderate violet. Relative luminance 0.048; OKLCH L 37.4% C 0.102 H 305.5°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#4E306B
RGBrgb(78, 48, 107)
HSLhsl(271, 38%, 30%)
HSVhsv(271, 55%, 42%)
CMYKcmyk(27.1%, 55.1%, 0%, 58%)
CIE-LABlab(26.14, 26.45, -29.41)
CIE-LCHlch(26.14, 39.55, 311.97°)
OKLaboklab(37.43% 0.059 -0.0826)
OKLCHoklch(37.43% 0.102 305.5)
XYZxyz(6.8521, 4.7952, 14.4717)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E306B #4D6B30
analogous
#30306B #4E306B #6B306B
triadic
#4E306B #6B4E30 #306B4E
tetradic
#4E306B #6B3030 #4D6B30 #306B6B
square
#4E306B #6B3030 #4D6B30 #306B6B
split-complementary
#4E306B #6B6B30 #306B30
monochromatic
#100A17 #2F1D41 #4E306B #6D4395 #8B5EB7

Accessibility & contrast

On white

10.72
#4E306B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#4E306B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E306B
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E306B#FFFFFF#000000##FFFFFF
##4E306B1.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D3D6D
Deuteranopia (green-blind)
#273E6A
Tritanopia (blue-blind)
#493B48
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4e306b;
/* rgb */ color: rgb(78, 48, 107);
/* oklch */ color: oklch(37.4% 0.102 305.5);
Tailwind
colors: {
  custom: {
    50: '#816996',
    500: '#4e306b',
    950: '#000000',
  },
}
SCSS
$custom: #4e306b;
$custom-light: #816996;
$custom-dark: #000000;
JSON
{
  "hex": "#4e306b",
  "rgb": {
    "r": 78,
    "g": 48,
    "b": 107
  },
  "hsl": {
    "h": 270.508,
    "s": 38.065,
    "l": 30.392
  },
  "oklch": {
    "l": 0.37433,
    "c": 0.10151,
    "h": 305.5
  },
  "luminance": 0.04795
}

Semantic roles & 50–950 ramp

primary
#4E306B
secondary
#7B9C5B
accent
#CE5A93
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0A060D
muted
#7C7A7E

Preview Lab

Preview with #4E306B

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

Preview Lab → · Contrast checker → · Palette generator →

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