#4E307E#4E307E

#4E307E is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.8% C 0.127 H 297.9°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#4E307E
RGBrgb(78, 48, 126)
HSLhsl(263, 45%, 34%)
HSVhsv(263, 62%, 49%)
CMYKcmyk(38.1%, 61.9%, 0%, 50.6%)
CIE-LABlab(27.41, 31.69, -39.46)
CIE-LCHlch(27.41, 50.61, 308.76°)
OKLaboklab(38.77% 0.0595 -0.1121)
OKLCHoklch(38.77% 0.127 297.9)
XYZxyz(7.9638, 5.2399, 20.3264)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E307E #607E30
analogous
#30397E #4E307E #75307E
triadic
#4E307E #7E4E30 #307E4E
tetradic
#4E307E #7E3039 #607E30 #307E75
square
#4E307E #7E3039 #607E30 #307E75
split-complementary
#4E307E #7E7530 #397E30
monochromatic
#170E25 #331F52 #4E307E #6941AA #8964C4

Accessibility & contrast

On white

10.25
#4E307E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#4E307E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E307E
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E307E#FFFFFF#000000##FFFFFF
##4E307E1.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004181
Deuteranopia (green-blind)
#12407C
Tritanopia (blue-blind)
#434152
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4e307e;
/* rgb */ color: rgb(78, 48, 126);
/* oklch */ color: oklch(38.8% 0.127 297.9);
Tailwind
colors: {
  custom: {
    50: '#836aa4',
    500: '#4e307e',
    950: '#000000',
  },
}
SCSS
$custom: #4e307e;
$custom-light: #836aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e307e",
  "rgb": {
    "r": 78,
    "g": 48,
    "b": 126
  },
  "hsl": {
    "h": 263.077,
    "s": 44.828,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38769,
    "c": 0.12691,
    "h": 297.9
  },
  "luminance": 0.0524
}

Semantic roles & 50–950 ramp

primary
#4E307E
secondary
#8EAB5F
accent
#D553A3
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E307E

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

Preview Lab → · Contrast checker → · Palette generator →

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