#4A256B#4A256B

#4A256B is a dark, moderate violet. Relative luminance 0.038; OKLCH L 35.1% C 0.119 H 305.4°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#4A256B
RGBrgb(74, 37, 107)
HSLhsl(272, 49%, 28%)
HSVhsv(272, 65%, 42%)
CMYKcmyk(30.8%, 65.4%, 0%, 58%)
CIE-LABlab(23.14, 31.92, -34.24)
CIE-LCHlch(23.14, 46.81, 312.99°)
OKLaboklab(35.11% 0.0689 -0.0969)
OKLCHoklch(35.11% 0.119 305.4)
XYZxyz(6.1389, 3.8406, 14.3250)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A256B #466B25
analogous
#27256B #4A256B #6B2569
triadic
#4A256B #6B4A25 #256B4A
tetradic
#4A256B #6B2725 #466B25 #25696B
square
#4A256B #6B2725 #466B25 #25696B
split-complementary
#4A256B #696B25 #256B27
monochromatic
#100817 #2B153E #4A256B #693598 #894AC0

Accessibility & contrast

On white

11.88
#4A256B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A256B
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A256B#FFFFFF#000000##FFFFFF
##4A256B1.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00366D
Deuteranopia (green-blind)
#153769
Tritanopia (blue-blind)
#443344
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4a256b;
/* rgb */ color: rgb(74, 37, 107);
/* oklch */ color: oklch(35.1% 0.119 305.4);
Tailwind
colors: {
  custom: {
    50: '#7f6296',
    500: '#4a256b',
    950: '#000000',
  },
}
SCSS
$custom: #4a256b;
$custom-light: #7f6296;
$custom-dark: #000000;
JSON
{
  "hex": "#4a256b",
  "rgb": {
    "r": 74,
    "g": 37,
    "b": 107
  },
  "hsl": {
    "h": 271.714,
    "s": 48.611,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35114,
    "c": 0.11891,
    "h": 305.4
  },
  "luminance": 0.03841
}

Semantic roles & 50–950 ramp

primary
#4A256B
secondary
#749E4E
accent
#D85090
background
#F7F5F9
surface
#EEEAF2
border
#C9C6CC
text
#0A050D
muted
#7C797E

Preview Lab

Preview with #4A256B

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

Preview Lab → · Contrast checker → · Palette generator →

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