#4E307F#4E307F

#4E307F is a dark, vivid violet. Relative luminance 0.053; OKLCH L 38.8% C 0.128 H 297.6°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#4E307F
RGBrgb(78, 48, 127)
HSLhsl(263, 45%, 34%)
HSVhsv(263, 62%, 50%)
CMYKcmyk(38.6%, 62.2%, 0%, 50.2%)
CIE-LABlab(27.48, 31.97, -39.98)
CIE-LCHlch(27.48, 51.19, 308.65°)
OKLaboklab(38.84% 0.0594 -0.1136)
OKLCHoklch(38.84% 0.128 297.6)
XYZxyz(8.0286, 5.2658, 20.6680)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E307F #617F30
analogous
#303A7F #4E307F #76307F
triadic
#4E307F #7F4E30 #307F4E
tetradic
#4E307F #7F303A #617F30 #307F76
square
#4E307F #7F303A #617F30 #307F76
split-complementary
#4E307F #7F7630 #3A7F30
monochromatic
#170E26 #331F53 #4E307F #6941AB #8965C5

Accessibility & contrast

On white

10.23
#4E307F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E307F
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E307F#FFFFFF#000000##FFFFFF
##4E307F1.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004182
Deuteranopia (green-blind)
#10407D
Tritanopia (blue-blind)
#434152
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4e307f;
/* rgb */ color: rgb(78, 48, 127);
/* oklch */ color: oklch(38.8% 0.128 297.6);
Tailwind
colors: {
  custom: {
    50: '#836aa5',
    500: '#4e307f',
    950: '#000000',
  },
}
SCSS
$custom: #4e307f;
$custom-light: #836aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e307f",
  "rgb": {
    "r": 78,
    "g": 48,
    "b": 127
  },
  "hsl": {
    "h": 262.785,
    "s": 45.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38844,
    "c": 0.12822,
    "h": 297.6
  },
  "luminance": 0.05266
}

Semantic roles & 50–950 ramp

primary
#4E307F
secondary
#8FAC5F
accent
#D553A4
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E307F

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

Preview Lab → · Contrast checker → · Palette generator →

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