#4D307E#4D307E

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

Color values

HEX#4D307E
RGBrgb(77, 48, 126)
HSLhsl(262, 45%, 34%)
HSVhsv(262, 62%, 49%)
CMYKcmyk(38.9%, 61.9%, 0%, 50.6%)
CIE-LABlab(27.29, 31.44, -39.66)
CIE-LCHlch(27.29, 50.61, 308.41°)
OKLaboklab(38.66% 0.058 -0.1127)
OKLCHoklch(38.66% 0.127 297.2)
XYZxyz(7.8825, 5.1979, 20.3226)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D307E #617E30
analogous
#303A7E #4D307E #74307E
triadic
#4D307E #7E4D30 #307E4D
tetradic
#4D307E #7E303A #617E30 #307E74
square
#4D307E #7E303A #617E30 #307E74
split-complementary
#4D307E #7E7430 #3A7E30
monochromatic
#170E25 #321F52 #4D307E #6841AA #8864C4

Accessibility & contrast

On white

10.30
#4D307E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D307E
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D307E#FFFFFF#000000##FFFFFF
##4D307E1.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004181
Deuteranopia (green-blind)
#10407C
Tritanopia (blue-blind)
#414152
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4d307e;
/* rgb */ color: rgb(77, 48, 126);
/* oklch */ color: oklch(38.7% 0.127 297.2);
Tailwind
colors: {
  custom: {
    50: '#826aa4',
    500: '#4d307e',
    950: '#000000',
  },
}
SCSS
$custom: #4d307e;
$custom-light: #826aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#4d307e",
  "rgb": {
    "r": 77,
    "g": 48,
    "b": 126
  },
  "hsl": {
    "h": 262.308,
    "s": 44.828,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38658,
    "c": 0.12677,
    "h": 297.2
  },
  "luminance": 0.05198
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4D307E

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

Preview Lab → · Contrast checker → · Palette generator →

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