#4D268D#4D268D

#4D268D is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.4% C 0.159 H 295.1°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#4D268D
RGBrgb(77, 38, 141)
HSLhsl(263, 58%, 35%)
HSVhsv(263, 73%, 55%)
CMYKcmyk(45.4%, 73%, 0%, 44.7%)
CIE-LABlab(26.41, 41.32, -50.46)
CIE-LCHlch(26.41, 65.22, 309.31°)
OKLaboklab(38.4% 0.0676 -0.1444)
OKLCHoklch(38.4% 0.159 295.1)
XYZxyz(8.5601, 4.8869, 25.6864)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D268D #668D26
analogous
#26338D #4D268D #80268D
triadic
#4D268D #8D4D26 #268D4D
tetradic
#4D268D #8D2633 #668D26 #268D80
square
#4D268D #8D2633 #668D26 #268D80
split-complementary
#4D268D #8D8026 #338D26
monochromatic
#180C2D #33195D #4D268D #6733BD #885BD3

Accessibility & contrast

On white

10.62
#4D268D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#4D268D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D268D
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D268D#FFFFFF#000000##FFFFFF
##4D268D1.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F90
Deuteranopia (green-blind)
#003D8B
Tritanopia (blue-blind)
#3B4057
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4d268d;
/* rgb */ color: rgb(77, 38, 141);
/* oklch */ color: oklch(38.4% 0.159 295.1);
Tailwind
colors: {
  custom: {
    50: '#8564af',
    500: '#4d268d',
    950: '#000000',
  },
}
SCSS
$custom: #4d268d;
$custom-light: #8564af;
$custom-dark: #000000;
JSON
{
  "hex": "#4d268d",
  "rgb": {
    "r": 77,
    "g": 38,
    "b": 141
  },
  "hsl": {
    "h": 262.718,
    "s": 57.542,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38395,
    "c": 0.15948,
    "h": 295.1
  },
  "luminance": 0.04887
}

Semantic roles & 50–950 ramp

primary
#4D268D
secondary
#93B857
accent
#E147A7
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #4D268D

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

Preview Lab → · Contrast checker → · Palette generator →

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