#4D268E#4D268E

#4D268E is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.5% C 0.161 H 294.8°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#4D268E
RGBrgb(77, 38, 142)
HSLhsl(263, 58%, 35%)
HSVhsv(263, 73%, 56%)
CMYKcmyk(45.8%, 73.2%, 0%, 44.3%)
CIE-LABlab(26.50, 41.60, -50.94)
CIE-LCHlch(26.50, 65.76, 309.24°)
OKLaboklab(38.48% 0.0674 -0.1458)
OKLCHoklch(38.48% 0.161 294.8)
XYZxyz(8.6348, 4.9168, 26.0800)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D268E #678E26
analogous
#26338E #4D268E #81268E
triadic
#4D268E #8E4D26 #268E4D
tetradic
#4D268E #8E2633 #678E26 #268E81
square
#4D268E #8E2633 #678E26 #268E81
split-complementary
#4D268E #8E8126 #338E26
monochromatic
#190C2D #33195E #4D268E #6733BE #885BD3

Accessibility & contrast

On white

10.59
#4D268E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D268E
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D268E#FFFFFF#000000##FFFFFF
##4D268E1.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004091
Deuteranopia (green-blind)
#003D8C
Tritanopia (blue-blind)
#3B4157
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4d268e;
/* rgb */ color: rgb(77, 38, 142);
/* oklch */ color: oklch(38.5% 0.161 294.8);
Tailwind
colors: {
  custom: {
    50: '#8564b0',
    500: '#4d268e',
    950: '#000000',
  },
}
SCSS
$custom: #4d268e;
$custom-light: #8564b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d268e",
  "rgb": {
    "r": 77,
    "g": 38,
    "b": 142
  },
  "hsl": {
    "h": 262.5,
    "s": 57.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38483,
    "c": 0.16067,
    "h": 294.8
  },
  "luminance": 0.04917
}

Semantic roles & 50–950 ramp

primary
#4D268E
secondary
#94B858
accent
#E147A7
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4D268E

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

Preview Lab → · Contrast checker → · Palette generator →

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