#4A268E#4A268E

#4A268E is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.1% C 0.161 H 293.1°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#4A268E
RGBrgb(74, 38, 142)
HSLhsl(261, 58%, 35%)
HSVhsv(261, 73%, 56%)
CMYKcmyk(47.9%, 73.2%, 0%, 44.3%)
CIE-LABlab(26.14, 41.05, -51.53)
CIE-LCHlch(26.14, 65.89, 308.54°)
OKLaboklab(38.15% 0.0629 -0.1477)
OKLCHoklch(38.15% 0.161 293.1)
XYZxyz(8.3983, 4.7948, 26.0689)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A268E #6A8E26
analogous
#26368E #4A268E #7E268E
triadic
#4A268E #8E4A26 #268E4A
tetradic
#4A268E #8E2636 #6A8E26 #268E7E
square
#4A268E #8E2636 #6A8E26 #268E7E
split-complementary
#4A268E #8E7E26 #368E26
monochromatic
#180C2D #31195E #4A268E #6333BE #855BD3

Accessibility & contrast

On white

10.72
#4A268E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#4A268E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A268E
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A268E#FFFFFF#000000##FFFFFF
##4A268E1.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#003C8C
Tritanopia (blue-blind)
#354157
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4a268e;
/* rgb */ color: rgb(74, 38, 142);
/* oklch */ color: oklch(38.1% 0.161 293.1);
Tailwind
colors: {
  custom: {
    50: '#8364b0',
    500: '#4a268e',
    950: '#000000',
  },
}
SCSS
$custom: #4a268e;
$custom-light: #8364b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4a268e",
  "rgb": {
    "r": 74,
    "g": 38,
    "b": 142
  },
  "hsl": {
    "h": 260.769,
    "s": 57.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.3815,
    "c": 0.16051,
    "h": 293.1
  },
  "luminance": 0.04795
}

Semantic roles & 50–950 ramp

primary
#4A268E
secondary
#97B858
accent
#E147AC
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0B0511
muted
#7C7A80

Preview Lab

Preview with #4A268E

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

Preview Lab → · Contrast checker → · Palette generator →

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