#4D267B#4D267B

#4D267B is a dark, vivid violet. Relative luminance 0.044; OKLCH L 36.9% C 0.138 H 300.9°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#4D267B
RGBrgb(77, 38, 123)
HSLhsl(268, 53%, 32%)
HSVhsv(268, 69%, 48%)
CMYKcmyk(37.4%, 69.1%, 0%, 51.8%)
CIE-LABlab(24.93, 36.37, -41.57)
CIE-LCHlch(24.93, 55.24, 311.18°)
OKLaboklab(36.88% 0.0707 -0.1183)
OKLCHoklch(36.88% 0.138 300.9)
XYZxyz(7.3280, 4.3940, 19.1971)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D267B #547B26
analogous
#262A7B #4D267B #78267B
triadic
#4D267B #7B4D26 #267B4D
tetradic
#4D267B #7B262A #547B26 #267B78
square
#4D267B #7B262A #547B26 #267B78
split-complementary
#4D267B #7B7826 #2A7B26
monochromatic
#12091D #30184C #4D267B #6A34AA #8952CA

Accessibility & contrast

On white

11.18
#4D267B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#4D267B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D267B
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D267B#FFFFFF#000000##FFFFFF
##4D267B1.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7E
Deuteranopia (green-blind)
#003B79
Tritanopia (blue-blind)
#43394D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4d267b;
/* rgb */ color: rgb(77, 38, 123);
/* oklch */ color: oklch(36.9% 0.138 300.9);
Tailwind
colors: {
  custom: {
    50: '#8363a2',
    500: '#4d267b',
    950: '#000000',
  },
}
SCSS
$custom: #4d267b;
$custom-light: #8363a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4d267b",
  "rgb": {
    "r": 77,
    "g": 38,
    "b": 123
  },
  "hsl": {
    "h": 267.529,
    "s": 52.795,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36878,
    "c": 0.13783,
    "h": 300.9
  },
  "luminance": 0.04394
}

Semantic roles & 50–950 ramp

primary
#4D267B
secondary
#82AD50
accent
#DC4C9A
background
#F8F6FA
surface
#EFEBF3
border
#CAC6CD
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #4D267B

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

Preview Lab → · Contrast checker → · Palette generator →

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