#4D307F#4D307F

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

Color values

HEX#4D307F
RGBrgb(77, 48, 127)
HSLhsl(262, 45%, 34%)
HSVhsv(262, 62%, 50%)
CMYKcmyk(39.4%, 62.2%, 0%, 50.2%)
CIE-LABlab(27.36, 31.73, -40.17)
CIE-LCHlch(27.36, 51.19, 308.30°)
OKLaboklab(38.73% 0.058 -0.1142)
OKLCHoklch(38.73% 0.128 296.9)
XYZxyz(7.9473, 5.2239, 20.6642)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D307F #627F30
analogous
#303B7F #4D307F #75307F
triadic
#4D307F #7F4D30 #307F4D
tetradic
#4D307F #7F303B #627F30 #307F75
square
#4D307F #7F303B #627F30 #307F75
split-complementary
#4D307F #7F7530 #3B7F30
monochromatic
#170E26 #321F53 #4D307F #6841AB #8865C5

Accessibility & contrast

On white

10.27
#4D307F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D307F
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D307F#FFFFFF#000000##FFFFFF
##4D307F1.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004182
Deuteranopia (green-blind)
#0E407D
Tritanopia (blue-blind)
#414152
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4d307f;
/* rgb */ color: rgb(77, 48, 127);
/* oklch */ color: oklch(38.7% 0.128 296.9);
Tailwind
colors: {
  custom: {
    50: '#836aa5',
    500: '#4d307f',
    950: '#000000',
  },
}
SCSS
$custom: #4d307f;
$custom-light: #836aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#4d307f",
  "rgb": {
    "r": 77,
    "g": 48,
    "b": 127
  },
  "hsl": {
    "h": 262.025,
    "s": 45.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38733,
    "c": 0.12809,
    "h": 296.9
  },
  "luminance": 0.05224
}

Semantic roles & 50–950 ramp

primary
#4D307F
secondary
#90AC5F
accent
#D553A5
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4D307F

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

Preview Lab → · Contrast checker → · Palette generator →

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