#4C266F#4C266F

#4C266F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 35.8% C 0.123 H 304.9°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#4C266F
RGBrgb(76, 38, 111)
HSLhsl(271, 49%, 29%)
HSVhsv(271, 66%, 44%)
CMYKcmyk(31.5%, 65.8%, 0%, 56.5%)
CIE-LABlab(23.90, 32.91, -35.58)
CIE-LCHlch(23.90, 48.47, 312.77°)
OKLaboklab(35.82% 0.0703 -0.1007)
OKLCHoklch(35.82% 0.123 304.9)
XYZxyz(6.5422, 4.0705, 15.4769)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C266F #496F26
analogous
#28266F #4C266F #6F266E
triadic
#4C266F #6F4C26 #266F4C
tetradic
#4C266F #6F2826 #496F26 #266E6F
square
#4C266F #6F2826 #496F26 #266E6F
split-complementary
#4C266F #6E6F26 #266F28
monochromatic
#100817 #2D1641 #4C266F #6B369D #8A4DC2

Accessibility & contrast

On white

11.58
#4C266F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#4C266F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C266F
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C266F#FFFFFF#000000##FFFFFF
##4C266F1.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003871
Deuteranopia (green-blind)
#14396D
Tritanopia (blue-blind)
#463546
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4c266f;
/* rgb */ color: rgb(76, 38, 111);
/* oklch */ color: oklch(35.8% 0.123 304.9);
Tailwind
colors: {
  custom: {
    50: '#816399',
    500: '#4c266f',
    950: '#000000',
  },
}
SCSS
$custom: #4c266f;
$custom-light: #816399;
$custom-dark: #000000;
JSON
{
  "hex": "#4c266f",
  "rgb": {
    "r": 76,
    "g": 38,
    "b": 111
  },
  "hsl": {
    "h": 271.233,
    "s": 48.993,
    "l": 29.216
  },
  "oklch": {
    "l": 0.3582,
    "c": 0.12286,
    "h": 304.9
  },
  "luminance": 0.0407
}

Semantic roles & 50–950 ramp

primary
#4C266F
secondary
#77A24F
accent
#D94F91
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4C266F

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

Preview Lab → · Contrast checker → · Palette generator →

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