#4A268A#4A268A

#4A268A is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.8% C 0.156 H 294.1°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#4A268A
RGBrgb(74, 38, 138)
HSLhsl(262, 57%, 35%)
HSVhsv(262, 72%, 54%)
CMYKcmyk(46.4%, 72.5%, 0%, 45.9%)
CIE-LABlab(25.79, 39.92, -49.61)
CIE-LCHlch(25.79, 63.68, 308.82°)
OKLaboklab(37.8% 0.0637 -0.1421)
OKLCHoklch(37.8% 0.156 294.1)
XYZxyz(8.1033, 4.6768, 24.5156)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A268A #668A26
analogous
#26348A #4A268A #7C268A
triadic
#4A268A #8A4A26 #268A4A
tetradic
#4A268A #8A2634 #668A26 #268A7C
square
#4A268A #8A2634 #668A26 #268A7C
split-complementary
#4A268A #8A7C26 #348A26
monochromatic
#170C2A #30195A #4A268A #6433BA #8459D1

Accessibility & contrast

On white

10.85
#4A268A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A268A
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A268A#FFFFFF#000000##FFFFFF
##4A268A1.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8D
Deuteranopia (green-blind)
#003B88
Tritanopia (blue-blind)
#383F55
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4a268a;
/* rgb */ color: rgb(74, 38, 138);
/* oklch */ color: oklch(37.8% 0.156 294.1);
Tailwind
colors: {
  custom: {
    50: '#8363ad',
    500: '#4a268a',
    950: '#000000',
  },
}
SCSS
$custom: #4a268a;
$custom-light: #8363ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4a268a",
  "rgb": {
    "r": 74,
    "g": 38,
    "b": 138
  },
  "hsl": {
    "h": 261.6,
    "s": 56.818,
    "l": 34.51
  },
  "oklch": {
    "l": 0.37795,
    "c": 0.15568,
    "h": 294.1
  },
  "luminance": 0.04677
}

Semantic roles & 50–950 ramp

primary
#4A268A
secondary
#93B656
accent
#E048A9
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0510
muted
#7C7A7F

Preview Lab

Preview with #4A268A

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

Preview Lab → · Contrast checker → · Palette generator →

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