#4A268B#4A268B

#4A268B is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.9% C 0.157 H 293.9°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#4A268B
RGBrgb(74, 38, 139)
HSLhsl(261, 57%, 35%)
HSVhsv(261, 73%, 55%)
CMYKcmyk(46.8%, 72.7%, 0%, 45.5%)
CIE-LABlab(25.88, 40.20, -50.10)
CIE-LCHlch(25.88, 64.23, 308.75°)
OKLaboklab(37.88% 0.0635 -0.1435)
OKLCHoklch(37.88% 0.157 293.9)
XYZxyz(8.1761, 4.7059, 24.8986)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A268B #678B26
analogous
#26358B #4A268B #7D268B
triadic
#4A268B #8B4A26 #268B4A
tetradic
#4A268B #8B2635 #678B26 #268B7D
square
#4A268B #8B2635 #678B26 #268B7D
split-complementary
#4A268B #8B7D26 #358B26
monochromatic
#170C2B #30195B #4A268B #6433BB #845AD2

Accessibility & contrast

On white

10.82
#4A268B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#4A268B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A268B
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A268B#FFFFFF#000000##FFFFFF
##4A268B1.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8E
Deuteranopia (green-blind)
#003B89
Tritanopia (blue-blind)
#374056
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4a268b;
/* rgb */ color: rgb(74, 38, 139);
/* oklch */ color: oklch(37.9% 0.157 293.9);
Tailwind
colors: {
  custom: {
    50: '#8364ae',
    500: '#4a268b',
    950: '#000000',
  },
}
SCSS
$custom: #4a268b;
$custom-light: #8364ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4a268b",
  "rgb": {
    "r": 74,
    "g": 38,
    "b": 139
  },
  "hsl": {
    "h": 261.386,
    "s": 57.062,
    "l": 34.706
  },
  "oklch": {
    "l": 0.37883,
    "c": 0.1569,
    "h": 293.9
  },
  "luminance": 0.04706
}

Semantic roles & 50–950 ramp

primary
#4A268B
secondary
#94B756
accent
#E047AA
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0510
muted
#7C7A7F

Preview Lab

Preview with #4A268B

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

Preview Lab → · Contrast checker → · Palette generator →

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