#4A256A#4A256A

#4A256A is a dark, moderate violet. Relative luminance 0.038; OKLCH L 35.0% C 0.118 H 305.9°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#4A256A
RGBrgb(74, 37, 106)
HSLhsl(272, 48%, 28%)
HSVhsv(272, 65%, 42%)
CMYKcmyk(30.2%, 65.1%, 0%, 58.4%)
CIE-LABlab(23.07, 31.65, -33.71)
CIE-LCHlch(23.07, 46.24, 313.20°)
OKLaboklab(35.04% 0.069 -0.0953)
OKLCHoklch(35.04% 0.118 305.9)
XYZxyz(6.0866, 3.8196, 14.0495)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A256A #456A25
analogous
#27256A #4A256A #6A2567
triadic
#4A256A #6A4A25 #256A4A
tetradic
#4A256A #6A2725 #456A25 #25676A
square
#4A256A #6A2725 #456A25 #25676A
split-complementary
#4A256A #676A25 #256A27
monochromatic
#100817 #2A153D #4A256A #6A3597 #894AC0

Accessibility & contrast

On white

11.90
#4A256A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#4A256A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A256A
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A256A#FFFFFF#000000##FFFFFF
##4A256A1.0011.901.7611.90
#FFFFFF11.901.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01366C
Deuteranopia (green-blind)
#163768
Tritanopia (blue-blind)
#453343
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4a256a;
/* rgb */ color: rgb(74, 37, 106);
/* oklch */ color: oklch(35.0% 0.118 305.9);
Tailwind
colors: {
  custom: {
    50: '#7f6295',
    500: '#4a256a',
    950: '#000000',
  },
}
SCSS
$custom: #4a256a;
$custom-light: #7f6295;
$custom-dark: #000000;
JSON
{
  "hex": "#4a256a",
  "rgb": {
    "r": 74,
    "g": 37,
    "b": 106
  },
  "hsl": {
    "h": 272.174,
    "s": 48.252,
    "l": 28.039
  },
  "oklch": {
    "l": 0.3504,
    "c": 0.11766,
    "h": 305.9
  },
  "luminance": 0.0382
}

Semantic roles & 50–950 ramp

primary
#4A256A
secondary
#739D4E
accent
#D8508F
background
#F7F5F9
surface
#EEEAF2
border
#C9C6CC
text
#0A050D
muted
#7C797E

Preview Lab

Preview with #4A256A

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

Preview Lab → · Contrast checker → · Palette generator →

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