#4D266B#4D266B

#4D266B is a dark, moderate violet. Relative luminance 0.040; OKLCH L 35.7% C 0.118 H 307.5°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#4D266B
RGBrgb(77, 38, 107)
HSLhsl(274, 48%, 28%)
HSVhsv(274, 64%, 42%)
CMYKcmyk(28%, 64.5%, 0%, 58%)
CIE-LABlab(23.76, 32.13, -33.23)
CIE-LCHlch(23.76, 46.22, 314.04°)
OKLaboklab(35.65% 0.072 -0.0938)
OKLCHoklch(35.65% 0.118 307.5)
XYZxyz(6.4070, 4.0256, 14.3466)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D266B #446B26
analogous
#2A266B #4D266B #6B2666
triadic
#4D266B #6B4D26 #266B4D
tetradic
#4D266B #6B2A26 #446B26 #26666B
square
#4D266B #6B2A26 #446B26 #26666B
split-complementary
#4D266B #666B26 #266B2A
monochromatic
#100817 #2C163E #4D266B #6D3698 #8D4CBF

Accessibility & contrast

On white

11.63
#4D266B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#4D266B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D266B
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D266B#FFFFFF#000000##FFFFFF
##4D266B1.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05376D
Deuteranopia (green-blind)
#1A3969
Tritanopia (blue-blind)
#483444
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4d266b;
/* rgb */ color: rgb(77, 38, 107);
/* oklch */ color: oklch(35.7% 0.118 307.5);
Tailwind
colors: {
  custom: {
    50: '#816396',
    500: '#4d266b',
    950: '#000000',
  },
}
SCSS
$custom: #4d266b;
$custom-light: #816396;
$custom-dark: #000000;
JSON
{
  "hex": "#4d266b",
  "rgb": {
    "r": 77,
    "g": 38,
    "b": 107
  },
  "hsl": {
    "h": 273.913,
    "s": 47.586,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35653,
    "c": 0.11822,
    "h": 307.5
  },
  "luminance": 0.04026
}

Semantic roles & 50–950 ramp

primary
#4D266B
secondary
#719E4F
accent
#D7518B
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #4D266B

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

Preview Lab → · Contrast checker → · Palette generator →

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