#4C286A#4C286A

#4C286A is a dark, moderate violet. Relative luminance 0.041; OKLCH L 35.8% C 0.113 H 306.7°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#4C286A
RGBrgb(76, 40, 106)
HSLhsl(273, 45%, 29%)
HSVhsv(273, 62%, 42%)
CMYKcmyk(28.3%, 62.3%, 0%, 58.4%)
CIE-LABlab(23.98, 30.44, -32.22)
CIE-LCHlch(23.98, 44.33, 313.37°)
OKLaboklab(35.77% 0.0678 -0.0909)
OKLCHoklch(35.77% 0.113 306.7)
XYZxyz(6.3403, 4.0948, 14.0892)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C286A #466A28
analogous
#2B286A #4C286A #6A2867
triadic
#4C286A #6A4C28 #286A4C
tetradic
#4C286A #6A2B28 #466A28 #28676A
square
#4C286A #6A2B28 #466A28 #28676A
split-complementary
#4C286A #676A28 #286A2B
monochromatic
#100816 #2C173E #4C286A #6C3996 #8B50BD

Accessibility & contrast

On white

11.54
#4C286A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4C286A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C286A
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C286A#FFFFFF#000000##FFFFFF
##4C286A1.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C386C
Deuteranopia (green-blind)
#1D3968
Tritanopia (blue-blind)
#473545
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4c286a;
/* rgb */ color: rgb(76, 40, 106);
/* oklch */ color: oklch(35.8% 0.113 306.7);
Tailwind
colors: {
  custom: {
    50: '#806495',
    500: '#4c286a',
    950: '#000000',
  },
}
SCSS
$custom: #4c286a;
$custom-light: #806495;
$custom-dark: #000000;
JSON
{
  "hex": "#4c286a",
  "rgb": {
    "r": 76,
    "g": 40,
    "b": 106
  },
  "hsl": {
    "h": 272.727,
    "s": 45.205,
    "l": 28.627
  },
  "oklch": {
    "l": 0.35766,
    "c": 0.11338,
    "h": 306.7
  },
  "luminance": 0.04095
}

Semantic roles & 50–950 ramp

primary
#4C286A
secondary
#739D51
accent
#D5538E
background
#F8F6F9
surface
#EFEBF1
border
#CAC6CB
text
#0A050D
muted
#7C7A7E

Preview Lab

Preview with #4C286A

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

Preview Lab → · Contrast checker → · Palette generator →

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