#4A2F9A#4A2F9A

#4A2F9A is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.5% C 0.164 H 288.4°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#4A2F9A
RGBrgb(74, 47, 154)
HSLhsl(255, 53%, 39%)
HSVhsv(255, 69%, 60%)
CMYKcmyk(51.9%, 69.5%, 0%, 39.6%)
CIE-LABlab(28.96, 39.65, -54.31)
CIE-LCHlch(28.96, 67.24, 306.13°)
OKLaboklab(40.48% 0.0518 -0.1559)
OKLCHoklch(40.48% 0.164 288.4)
XYZxyz(9.6716, 5.8215, 31.1796)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2F9A #7F9A2F
analogous
#2F4A9A #4A2F9A #802F9A
triadic
#4A2F9A #9A4A2F #2F9A4A
tetradic
#4A2F9A #9A2F4A #7F9A2F #2F9A80
square
#4A2F9A #9A2F4A #7F9A2F #2F9A80
split-complementary
#4A2F9A #9A802F #4A9A2F
monochromatic
#1D123C #33216B #4A2F9A #6241C5 #8970D3

Accessibility & contrast

On white

9.70
#4A2F9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A2F9A
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2F9A#FFFFFF#000000##FFFFFF
##4A2F9A1.009.702.169.70
#FFFFFF9.701.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479D
Deuteranopia (green-blind)
#004198
Tritanopia (blue-blind)
#2D4A60
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4a2f9a;
/* rgb */ color: rgb(74, 47, 154);
/* oklch */ color: oklch(40.5% 0.164 288.4);
Tailwind
colors: {
  custom: {
    50: '#846ab9',
    500: '#4a2f9a',
    950: '#000000',
  },
}
SCSS
$custom: #4a2f9a;
$custom-light: #846ab9;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2f9a",
  "rgb": {
    "r": 74,
    "g": 47,
    "b": 154
  },
  "hsl": {
    "h": 255.14,
    "s": 53.234,
    "l": 39.412
  },
  "oklch": {
    "l": 0.40481,
    "c": 0.16427,
    "h": 288.4
  },
  "luminance": 0.05822
}

Semantic roles & 50–950 ramp

primary
#4A2F9A
secondary
#A6BB6A
accent
#DD4BB8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4A2F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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