#4D268F#4D268F

#4D268F is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.6% C 0.162 H 294.5°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#4D268F
RGBrgb(77, 38, 143)
HSLhsl(262, 58%, 35%)
HSVhsv(262, 73%, 56%)
CMYKcmyk(46.2%, 73.4%, 0%, 43.9%)
CIE-LABlab(26.58, 41.88, -51.42)
CIE-LCHlch(26.58, 66.31, 309.16°)
OKLaboklab(38.57% 0.0672 -0.1472)
OKLCHoklch(38.57% 0.162 294.5)
XYZxyz(8.7103, 4.9469, 26.4772)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D268F #688F26
analogous
#26338F #4D268F #81268F
triadic
#4D268F #8F4D26 #268F4D
tetradic
#4D268F #8F2633 #688F26 #268F81
square
#4D268F #8F2633 #688F26 #268F81
split-complementary
#4D268F #8F8126 #338F26
monochromatic
#190C2E #33195F #4D268F #6733BF #885CD4

Accessibility & contrast

On white

10.56
#4D268F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#4D268F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D268F
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D268F#FFFFFF#000000##FFFFFF
##4D268F1.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004092
Deuteranopia (green-blind)
#003D8D
Tritanopia (blue-blind)
#3A4158
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4d268f;
/* rgb */ color: rgb(77, 38, 143);
/* oklch */ color: oklch(38.6% 0.162 294.5);
Tailwind
colors: {
  custom: {
    50: '#8564b1',
    500: '#4d268f',
    950: '#000000',
  },
}
SCSS
$custom: #4d268f;
$custom-light: #8564b1;
$custom-dark: #000000;
JSON
{
  "hex": "#4d268f",
  "rgb": {
    "r": 77,
    "g": 38,
    "b": 143
  },
  "hsl": {
    "h": 262.286,
    "s": 58.011,
    "l": 35.49
  },
  "oklch": {
    "l": 0.38571,
    "c": 0.16185,
    "h": 294.5
  },
  "luminance": 0.04947
}

Semantic roles & 50–950 ramp

primary
#4D268F
secondary
#95B958
accent
#E147A8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4D268F

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

Preview Lab → · Contrast checker → · Palette generator →

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