#4D268B#4D268B

#4D268B is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.2% C 0.157 H 295.7°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#4D268B
RGBrgb(77, 38, 139)
HSLhsl(263, 57%, 35%)
HSVhsv(263, 73%, 55%)
CMYKcmyk(44.6%, 72.7%, 0%, 45.5%)
CIE-LABlab(26.24, 40.76, -49.50)
CIE-LCHlch(26.24, 64.12, 309.47°)
OKLaboklab(38.22% 0.068 -0.1416)
OKLCHoklch(38.22% 0.157 295.7)
XYZxyz(8.4126, 4.8279, 24.9097)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D268B #648B26
analogous
#26328B #4D268B #7F268B
triadic
#4D268B #8B4D26 #268B4D
tetradic
#4D268B #8B2632 #648B26 #268B7F
square
#4D268B #8B2632 #648B26 #268B7F
split-complementary
#4D268B #8B7F26 #328B26
monochromatic
#180C2B #32195B #4D268B #6833BB #885AD2

Accessibility & contrast

On white

10.68
#4D268B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#4D268B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D268B
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D268B#FFFFFF#000000##FFFFFF
##4D268B1.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8E
Deuteranopia (green-blind)
#003D89
Tritanopia (blue-blind)
#3C3F56
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4d268b;
/* rgb */ color: rgb(77, 38, 139);
/* oklch */ color: oklch(38.2% 0.157 295.7);
Tailwind
colors: {
  custom: {
    50: '#8564ae',
    500: '#4d268b',
    950: '#000000',
  },
}
SCSS
$custom: #4d268b;
$custom-light: #8564ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4d268b",
  "rgb": {
    "r": 77,
    "g": 38,
    "b": 139
  },
  "hsl": {
    "h": 263.168,
    "s": 57.062,
    "l": 34.706
  },
  "oklch": {
    "l": 0.3822,
    "c": 0.1571,
    "h": 295.7
  },
  "luminance": 0.04828
}

Semantic roles & 50–950 ramp

primary
#4D268B
secondary
#91B756
accent
#E047A5
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #4D268B

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

Preview Lab → · Contrast checker → · Palette generator →

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