#4A2BB2#4A2BB2

#4A2BB2 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.2% C 0.198 H 284.6°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#4A2BB2
RGBrgb(74, 43, 178)
HSLhsl(254, 61%, 43%)
HSVhsv(254, 76%, 70%)
CMYKcmyk(58.4%, 75.8%, 0%, 30.2%)
CIE-LABlab(30.39, 48.90, -66.44)
CIE-LCHlch(30.39, 82.50, 306.36°)
OKLaboklab(42.17% 0.0499 -0.1914)
OKLCHoklch(42.17% 0.198 284.6)
XYZxyz(11.7213, 6.3972, 42.7280)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2BB2 #93B22B
analogous
#2B4FB2 #4A2BB2 #8D2BB2
triadic
#4A2BB2 #B24A2B #2BB24A
tetradic
#4A2BB2 #B22B4F #93B22B #2BB28D
square
#4A2BB2 #B22B4F #93B22B #2BB28D
split-complementary
#4A2BB2 #B28D2B #4FB22B
monochromatic
#21134F #361F81 #4A2BB2 #6748D3 #9079DF

Accessibility & contrast

On white

9.21
#4A2BB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#4A2BB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2BB2
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2BB2#FFFFFF#000000##FFFFFF
##4A2BB21.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB6
Deuteranopia (green-blind)
#0043B0
Tritanopia (blue-blind)
#0E516D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4a2bb2;
/* rgb */ color: rgb(74, 43, 178);
/* oklch */ color: oklch(42.2% 0.198 284.6);
Tailwind
colors: {
  custom: {
    50: '#8968ca',
    500: '#4a2bb2',
    950: '#000000',
  },
}
SCSS
$custom: #4a2bb2;
$custom-light: #8968ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2bb2",
  "rgb": {
    "r": 74,
    "g": 43,
    "b": 178
  },
  "hsl": {
    "h": 253.778,
    "s": 61.086,
    "l": 43.333
  },
  "oklch": {
    "l": 0.42171,
    "c": 0.19779,
    "h": 284.6
  },
  "luminance": 0.06398
}

Semantic roles & 50–950 ramp

primary
#4A2BB2
secondary
#B3C772
accent
#E444BF
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4A2BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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