#4A2F99#4A2F99

#4A2F99 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.4% C 0.163 H 288.6°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#4A2F99
RGBrgb(74, 47, 153)
HSLhsl(255, 53%, 39%)
HSVhsv(255, 69%, 60%)
CMYKcmyk(51.6%, 69.3%, 0%, 40%)
CIE-LABlab(28.87, 39.35, -53.84)
CIE-LCHlch(28.87, 66.69, 306.16°)
OKLaboklab(40.39% 0.052 -0.1545)
OKLCHoklch(40.39% 0.163 288.6)
XYZxyz(9.5887, 5.7884, 30.7428)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2F99 #7E992F
analogous
#2F4999 #4A2F99 #7F2F99
triadic
#4A2F99 #994A2F #2F994A
tetradic
#4A2F99 #992F49 #7E992F #2F997F
square
#4A2F99 #992F49 #7E992F #2F997F
split-complementary
#4A2F99 #997F2F #49992F
monochromatic
#1D123B #33216A #4A2F99 #6241C5 #896FD3

Accessibility & contrast

On white

9.73
#4A2F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#4A2F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2F99
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2F99#FFFFFF#000000##FFFFFF
##4A2F991.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469C
Deuteranopia (green-blind)
#004197
Tritanopia (blue-blind)
#2E4A60
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4a2f99;
/* rgb */ color: rgb(74, 47, 153);
/* oklch */ color: oklch(40.4% 0.163 288.6);
Tailwind
colors: {
  custom: {
    50: '#846ab8',
    500: '#4a2f99',
    950: '#000000',
  },
}
SCSS
$custom: #4a2f99;
$custom-light: #846ab8;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2f99",
  "rgb": {
    "r": 74,
    "g": 47,
    "b": 153
  },
  "hsl": {
    "h": 255.283,
    "s": 53,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40393,
    "c": 0.16302,
    "h": 288.6
  },
  "luminance": 0.05789
}

Semantic roles & 50–950 ramp

primary
#4A2F99
secondary
#A6BA69
accent
#DC4BB7
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4A2F99

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

Preview Lab → · Contrast checker → · Palette generator →

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