#4D306E#4D306E

#4D306E is a dark, moderate violet. Relative luminance 0.048; OKLCH L 37.5% C 0.105 H 303.3°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#4D306E
RGBrgb(77, 48, 110)
HSLhsl(268, 39%, 31%)
HSVhsv(268, 56%, 43%)
CMYKcmyk(30%, 56.4%, 0%, 56.9%)
CIE-LABlab(26.21, 26.96, -31.24)
CIE-LCHlch(26.21, 41.26, 310.80°)
OKLaboklab(37.51% 0.0578 -0.088)
OKLCHoklch(37.51% 0.105 303.3)
XYZxyz(6.9314, 4.8175, 15.3135)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D306E #516E30
analogous
#30326E #4D306E #6C306E
triadic
#4D306E #6E4D30 #306E4D
tetradic
#4D306E #6E3032 #516E30 #306E6C
square
#4D306E #6E3032 #516E30 #306E6C
split-complementary
#4D306E #6E6C30 #326E30
monochromatic
#110B19 #2F1D43 #4D306E #6B4399 #895FB9

Accessibility & contrast

On white

10.70
#4D306E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D306E
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D306E#FFFFFF#000000##FFFFFF
##4D306E1.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A3D70
Deuteranopia (green-blind)
#233E6D
Tritanopia (blue-blind)
#473C4A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4d306e;
/* rgb */ color: rgb(77, 48, 110);
/* oklch */ color: oklch(37.5% 0.105 303.3);
Tailwind
colors: {
  custom: {
    50: '#816998',
    500: '#4d306e',
    950: '#000000',
  },
}
SCSS
$custom: #4d306e;
$custom-light: #816998;
$custom-dark: #000000;
JSON
{
  "hex": "#4d306e",
  "rgb": {
    "r": 77,
    "g": 48,
    "b": 110
  },
  "hsl": {
    "h": 268.065,
    "s": 39.241,
    "l": 30.98
  },
  "oklch": {
    "l": 0.37514,
    "c": 0.10528,
    "h": 303.3
  },
  "luminance": 0.04817
}

Semantic roles & 50–950 ramp

primary
#4D306E
secondary
#7F9F5B
accent
#CF5998
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0A060D
muted
#7C7A7E

Preview Lab

Preview with #4D306E

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

Preview Lab → · Contrast checker → · Palette generator →

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