#4C268A#4C268A

#4C268A is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.0% C 0.156 H 295.4°. Best body text is #FFFFFF at 10.76:1 contrast (WCAG AA passes).

Color values

HEX#4C268A
RGBrgb(76, 38, 138)
HSLhsl(263, 57%, 35%)
HSVhsv(263, 72%, 54%)
CMYKcmyk(44.9%, 72.5%, 0%, 45.9%)
CIE-LABlab(26.03, 40.30, -49.21)
CIE-LCHlch(26.03, 63.61, 309.31°)
OKLaboklab(38.02% 0.0667 -0.1408)
OKLCHoklch(38.02% 0.156 295.4)
XYZxyz(8.2598, 4.7575, 24.5229)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C268A #648A26
analogous
#26328A #4C268A #7E268A
triadic
#4C268A #8A4C26 #268A4C
tetradic
#4C268A #8A2632 #648A26 #268A7E
square
#4C268A #8A2632 #648A26 #268A7E
split-complementary
#4C268A #8A7E26 #328A26
monochromatic
#170C2A #32195A #4C268A #6633BA #8759D1

Accessibility & contrast

On white

10.76
#4C268A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#4C268A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C268A
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C268A#FFFFFF#000000##FFFFFF
##4C268A1.0010.761.9510.76
#FFFFFF10.761.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8D
Deuteranopia (green-blind)
#003C88
Tritanopia (blue-blind)
#3B3F55
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4c268a;
/* rgb */ color: rgb(76, 38, 138);
/* oklch */ color: oklch(38.0% 0.156 295.4);
Tailwind
colors: {
  custom: {
    50: '#8464ad',
    500: '#4c268a',
    950: '#000000',
  },
}
SCSS
$custom: #4c268a;
$custom-light: #8464ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4c268a",
  "rgb": {
    "r": 76,
    "g": 38,
    "b": 138
  },
  "hsl": {
    "h": 262.8,
    "s": 56.818,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38019,
    "c": 0.15582,
    "h": 295.4
  },
  "luminance": 0.04758
}

Semantic roles & 50–950 ramp

primary
#4C268A
secondary
#91B656
accent
#E048A6
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0510
muted
#7C7A7F

Preview Lab

Preview with #4C268A

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

Preview Lab → · Contrast checker → · Palette generator →

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