#4E307D#4E307D

#4E307D is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.7% C 0.126 H 298.3°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#4E307D
RGBrgb(78, 48, 125)
HSLhsl(263, 45%, 34%)
HSVhsv(263, 62%, 49%)
CMYKcmyk(37.6%, 61.6%, 0%, 51%)
CIE-LABlab(27.34, 31.41, -38.95)
CIE-LCHlch(27.34, 50.03, 308.88°)
OKLaboklab(38.7% 0.0595 -0.1106)
OKLCHoklch(38.7% 0.126 298.3)
XYZxyz(7.8996, 5.2142, 19.9883)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E307D #5F7D30
analogous
#30397D #4E307D #75307D
triadic
#4E307D #7D4E30 #307D4E
tetradic
#4E307D #7D3039 #5F7D30 #307D75
square
#4E307D #7D3039 #5F7D30 #307D75
split-complementary
#4E307D #7D7530 #397D30
monochromatic
#170E25 #321F51 #4E307D #6A41A9 #8964C3

Accessibility & contrast

On white

10.28
#4E307D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4E307D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E307D
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E307D#FFFFFF#000000##FFFFFF
##4E307D1.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02417F
Deuteranopia (green-blind)
#13407B
Tritanopia (blue-blind)
#434051
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4e307d;
/* rgb */ color: rgb(78, 48, 125);
/* oklch */ color: oklch(38.7% 0.126 298.3);
Tailwind
colors: {
  custom: {
    50: '#836aa3',
    500: '#4e307d',
    950: '#000000',
  },
}
SCSS
$custom: #4e307d;
$custom-light: #836aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e307d",
  "rgb": {
    "r": 78,
    "g": 48,
    "b": 125
  },
  "hsl": {
    "h": 263.377,
    "s": 44.509,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38695,
    "c": 0.12558,
    "h": 298.3
  },
  "luminance": 0.05214
}

Semantic roles & 50–950 ramp

primary
#4E307D
secondary
#8DAB5E
accent
#D454A2
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E307D

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

Preview Lab → · Contrast checker → · Palette generator →

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