#4A256C#4A256C

#4A256C is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.2% C 0.120 H 305.0°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#4A256C
RGBrgb(74, 37, 108)
HSLhsl(271, 49%, 28%)
HSVhsv(271, 66%, 42%)
CMYKcmyk(31.5%, 65.7%, 0%, 57.6%)
CIE-LABlab(23.21, 32.18, -34.77)
CIE-LCHlch(23.21, 47.38, 312.78°)
OKLaboklab(35.19% 0.0689 -0.0984)
OKLCHoklch(35.19% 0.12 305)
XYZxyz(6.1918, 3.8617, 14.6036)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A256C #476C25
analogous
#26256C #4A256C #6C256A
triadic
#4A256C #6C4A25 #256C4A
tetradic
#4A256C #6C2625 #476C25 #256A6C
square
#4A256C #6C2625 #476C25 #256A6C
split-complementary
#4A256C #6A6C25 #256C26
monochromatic
#100817 #2B153E #4A256C #69359A #884AC1

Accessibility & contrast

On white

11.85
#4A256C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#4A256C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A256C
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A256C#FFFFFF#000000##FFFFFF
##4A256C1.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00366E
Deuteranopia (green-blind)
#14376A
Tritanopia (blue-blind)
#443445
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4a256c;
/* rgb */ color: rgb(74, 37, 108);
/* oklch */ color: oklch(35.2% 0.120 305.0);
Tailwind
colors: {
  custom: {
    50: '#7f6297',
    500: '#4a256c',
    950: '#000000',
  },
}
SCSS
$custom: #4a256c;
$custom-light: #7f6297;
$custom-dark: #000000;
JSON
{
  "hex": "#4a256c",
  "rgb": {
    "r": 74,
    "g": 37,
    "b": 108
  },
  "hsl": {
    "h": 271.268,
    "s": 48.966,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35189,
    "c": 0.12015,
    "h": 305
  },
  "luminance": 0.03862
}

Semantic roles & 50–950 ramp

primary
#4A256C
secondary
#759F4E
accent
#D94F91
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0A050D
muted
#7C797E

Preview Lab

Preview with #4A256C

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

Preview Lab → · Contrast checker → · Palette generator →

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