#4C276E#4C276E

#4C276E is a dark, vivid violet. Relative luminance 0.041; OKLCH L 35.9% C 0.120 H 305.1°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#4C276E
RGBrgb(76, 39, 110)
HSLhsl(271, 48%, 29%)
HSVhsv(271, 65%, 43%)
CMYKcmyk(30.9%, 64.5%, 0%, 56.9%)
CIE-LABlab(24.04, 32.08, -34.71)
CIE-LCHlch(24.04, 47.26, 312.74°)
OKLaboklab(35.9% 0.0691 -0.0982)
OKLCHoklch(35.9% 0.12 305.1)
XYZxyz(6.5199, 4.1134, 15.1993)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C276E #496E27
analogous
#29276E #4C276E #6E276D
triadic
#4C276E #6E4C27 #276E4C
tetradic
#4C276E #6E2927 #496E27 #276D6E
square
#4C276E #6E2927 #496E27 #276D6E
split-complementary
#4C276E #6D6E27 #276E29
monochromatic
#100817 #2D1741 #4C276E #6B379B #8A4FC1

Accessibility & contrast

On white

11.52
#4C276E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C276E
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C276E#FFFFFF#000000##FFFFFF
##4C276E1.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#013870
Deuteranopia (green-blind)
#17396C
Tritanopia (blue-blind)
#463546
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4c276e;
/* rgb */ color: rgb(76, 39, 110);
/* oklch */ color: oklch(35.9% 0.120 305.1);
Tailwind
colors: {
  custom: {
    50: '#816398',
    500: '#4c276e',
    950: '#000000',
  },
}
SCSS
$custom: #4c276e;
$custom-light: #816398;
$custom-dark: #000000;
JSON
{
  "hex": "#4c276e",
  "rgb": {
    "r": 76,
    "g": 39,
    "b": 110
  },
  "hsl": {
    "h": 271.268,
    "s": 47.651,
    "l": 29.216
  },
  "oklch": {
    "l": 0.35899,
    "c": 0.12004,
    "h": 305.1
  },
  "luminance": 0.04113
}

Semantic roles & 50–950 ramp

primary
#4C276E
secondary
#77A150
accent
#D75191
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B050E
muted
#7C7A7E

Preview Lab

Preview with #4C276E

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

Preview Lab → · Contrast checker → · Palette generator →

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