#4A2A7B#4A2A7B

#4A2A7B is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.1% C 0.132 H 297.8°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#4A2A7B
RGBrgb(74, 42, 123)
HSLhsl(264, 49%, 32%)
HSVhsv(264, 66%, 48%)
CMYKcmyk(39.8%, 65.9%, 0%, 51.8%)
CIE-LABlab(25.39, 33.42, -40.86)
CIE-LCHlch(25.39, 52.79, 309.29°)
OKLaboklab(37.12% 0.0614 -0.1163)
OKLCHoklch(37.12% 0.132 297.8)
XYZxyz(7.2262, 4.5417, 19.2310)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2A7B #5B7B2A
analogous
#2A327B #4A2A7B #732A7B
triadic
#4A2A7B #7B4A2A #2A7B4A
tetradic
#4A2A7B #7B2A32 #5B7B2A #2A7B73
square
#4A2A7B #7B2A32 #5B7B2A #2A7B73
split-complementary
#4A2A7B #7B732A #327B2A
monochromatic
#130B20 #2F1A4D #4A2A7B #653AA9 #8459C6

Accessibility & contrast

On white

11.00
#4A2A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#4A2A7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2A7B
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2A7B#FFFFFF#000000##FFFFFF
##4A2A7B1.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7E
Deuteranopia (green-blind)
#003B79
Tritanopia (blue-blind)
#3E3C4E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4a2a7b;
/* rgb */ color: rgb(74, 42, 123);
/* oklch */ color: oklch(37.1% 0.132 297.8);
Tailwind
colors: {
  custom: {
    50: '#8165a2',
    500: '#4a2a7b',
    950: '#000000',
  },
}
SCSS
$custom: #4a2a7b;
$custom-light: #8165a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2a7b",
  "rgb": {
    "r": 74,
    "g": 42,
    "b": 123
  },
  "hsl": {
    "h": 263.704,
    "s": 49.091,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37121,
    "c": 0.13154,
    "h": 297.8
  },
  "luminance": 0.04542
}

Semantic roles & 50–950 ramp

primary
#4A2A7B
secondary
#8AAC55
accent
#D94FA2
background
#F8F6FA
surface
#EFEBF3
border
#CAC6CD
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4A2A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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