#4D307D#4D307D

#4D307D is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.6% C 0.125 H 297.6°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#4D307D
RGBrgb(77, 48, 125)
HSLhsl(263, 45%, 34%)
HSVhsv(263, 62%, 49%)
CMYKcmyk(38.4%, 61.6%, 0%, 51%)
CIE-LABlab(27.22, 31.16, -39.14)
CIE-LCHlch(27.22, 50.03, 308.52°)
OKLaboklab(38.58% 0.0581 -0.1112)
OKLCHoklch(38.58% 0.125 297.6)
XYZxyz(7.8183, 5.1722, 19.9845)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D307D #607D30
analogous
#303A7D #4D307D #74307D
triadic
#4D307D #7D4D30 #307D4D
tetradic
#4D307D #7D303A #607D30 #307D74
square
#4D307D #7D303A #607D30 #307D74
split-complementary
#4D307D #7D7430 #3A7D30
monochromatic
#170E25 #321F51 #4D307D #6841A9 #8864C3

Accessibility & contrast

On white

10.32
#4D307D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4D307D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D307D
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D307D#FFFFFF#000000##FFFFFF
##4D307D1.0010.322.0310.32
#FFFFFF10.321.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01417F
Deuteranopia (green-blind)
#123F7B
Tritanopia (blue-blind)
#424051
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4d307d;
/* rgb */ color: rgb(77, 48, 125);
/* oklch */ color: oklch(38.6% 0.125 297.6);
Tailwind
colors: {
  custom: {
    50: '#826aa3',
    500: '#4d307d',
    950: '#000000',
  },
}
SCSS
$custom: #4d307d;
$custom-light: #826aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#4d307d",
  "rgb": {
    "r": 77,
    "g": 48,
    "b": 125
  },
  "hsl": {
    "h": 262.597,
    "s": 44.509,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38583,
    "c": 0.12544,
    "h": 297.6
  },
  "luminance": 0.05172
}

Semantic roles & 50–950 ramp

primary
#4D307D
secondary
#8EAB5E
accent
#D454A4
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4D307D

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

Preview Lab → · Contrast checker → · Palette generator →

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