#4A2BA6#4A2BA6

#4A2BA6 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.0% C 0.184 H 286.7°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#4A2BA6
RGBrgb(74, 43, 166)
HSLhsl(255, 59%, 41%)
HSVhsv(255, 74%, 65%)
CMYKcmyk(55.4%, 74.1%, 0%, 34.9%)
CIE-LABlab(29.25, 45.39, -61.11)
CIE-LCHlch(29.25, 76.13, 306.60°)
OKLaboklab(41.02% 0.0529 -0.1758)
OKLCHoklch(41.02% 0.184 286.7)
XYZxyz(10.5688, 5.9362, 36.6579)
Luminance0.0594 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2BA6 #87A62B
analogous
#2B49A6 #4A2BA6 #872BA6
triadic
#4A2BA6 #A64A2B #2BA64A
tetradic
#4A2BA6 #A62B49 #87A62B #2BA687
square
#4A2BA6 #A62B49 #87A62B #2BA687
split-complementary
#4A2BA6 #A6872B #49A62B
monochromatic
#1F1245 #341E75 #4A2BA6 #6441CE #8C71DA

Accessibility & contrast

On white

9.60
#4A2BA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#4A2BA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2BA6
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2BA6#FFFFFF#000000##FFFFFF
##4A2BA61.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AA
Deuteranopia (green-blind)
#0041A4
Tritanopia (blue-blind)
#224D66
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4a2ba6;
/* rgb */ color: rgb(74, 43, 166);
/* oklch */ color: oklch(41.0% 0.184 286.7);
Tailwind
colors: {
  custom: {
    50: '#8768c1',
    500: '#4a2ba6',
    950: '#000000',
  },
}
SCSS
$custom: #4a2ba6;
$custom-light: #8768c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2ba6",
  "rgb": {
    "r": 74,
    "g": 43,
    "b": 166
  },
  "hsl": {
    "h": 255.122,
    "s": 58.852,
    "l": 40.98
  },
  "oklch": {
    "l": 0.4102,
    "c": 0.18361,
    "h": 286.7
  },
  "luminance": 0.05937
}

Semantic roles & 50–950 ramp

primary
#4A2BA6
secondary
#ACC16B
accent
#E246BB
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4A2BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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