#4A256F#4A256F

#4A256F is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.4% C 0.124 H 303.7°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#4A256F
RGBrgb(74, 37, 111)
HSLhsl(270, 50%, 29%)
HSVhsv(270, 67%, 44%)
CMYKcmyk(33.3%, 66.7%, 0%, 56.5%)
CIE-LABlab(23.43, 32.98, -36.36)
CIE-LCHlch(23.43, 49.09, 312.21°)
OKLaboklab(35.42% 0.0687 -0.1031)
OKLCHoklch(35.42% 0.124 303.7)
XYZxyz(6.3542, 3.9267, 15.4590)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A256F #4A6F25
analogous
#25256F #4A256F #6F256F
triadic
#4A256F #6F4A25 #256F4A
tetradic
#4A256F #6F2525 #4A6F25 #256F6F
square
#4A256F #6F2525 #4A6F25 #256F6F
split-complementary
#4A256F #6F6F25 #256F25
monochromatic
#0F0817 #2B1641 #4A256F #69349D #874BC3

Accessibility & contrast

On white

11.76
#4A256F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#4A256F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A256F
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A256F#FFFFFF#000000##FFFFFF
##4A256F1.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003771
Deuteranopia (green-blind)
#0F386D
Tritanopia (blue-blind)
#433546
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4a256f;
/* rgb */ color: rgb(74, 37, 111);
/* oklch */ color: oklch(35.4% 0.124 303.7);
Tailwind
colors: {
  custom: {
    50: '#806299',
    500: '#4a256f',
    950: '#000000',
  },
}
SCSS
$custom: #4a256f;
$custom-light: #806299;
$custom-dark: #000000;
JSON
{
  "hex": "#4a256f",
  "rgb": {
    "r": 74,
    "g": 37,
    "b": 111
  },
  "hsl": {
    "h": 270,
    "s": 50,
    "l": 29.02
  },
  "oklch": {
    "l": 0.35417,
    "c": 0.12388,
    "h": 303.7
  },
  "luminance": 0.03927
}

Semantic roles & 50–950 ramp

primary
#4A256F
secondary
#78A24E
accent
#DA4E94
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0A050E
muted
#7C797E

Preview Lab

Preview with #4A256F

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

Preview Lab → · Contrast checker → · Palette generator →

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