#4A2F96#4A2F96

#4A2F96 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.1% C 0.159 H 289.2°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#4A2F96
RGBrgb(74, 47, 150)
HSLhsl(256, 52%, 39%)
HSVhsv(256, 69%, 59%)
CMYKcmyk(50.7%, 68.7%, 0%, 41.2%)
CIE-LABlab(28.62, 38.45, -52.42)
CIE-LCHlch(28.62, 65.01, 306.26°)
OKLaboklab(40.13% 0.0525 -0.1503)
OKLCHoklch(40.13% 0.159 289.2)
XYZxyz(9.3440, 5.6905, 29.4543)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2F96 #7B962F
analogous
#2F4796 #4A2F96 #7D2F96
triadic
#4A2F96 #964A2F #2F964A
tetradic
#4A2F96 #962F47 #7B962F #2F967D
square
#4A2F96 #962F47 #7B962F #2F967D
split-complementary
#4A2F96 #967D2F #47962F
monochromatic
#1C1239 #332067 #4A2F96 #623FC3 #886ED2

Accessibility & contrast

On white

9.82
#4A2F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#4A2F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2F96
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2F96#FFFFFF#000000##FFFFFF
##4A2F961.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004699
Deuteranopia (green-blind)
#004194
Tritanopia (blue-blind)
#30495E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4a2f96;
/* rgb */ color: rgb(74, 47, 150);
/* oklch */ color: oklch(40.1% 0.159 289.2);
Tailwind
colors: {
  custom: {
    50: '#8469b6',
    500: '#4a2f96',
    950: '#000000',
  },
}
SCSS
$custom: #4a2f96;
$custom-light: #8469b6;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2f96",
  "rgb": {
    "r": 74,
    "g": 47,
    "b": 150
  },
  "hsl": {
    "h": 255.728,
    "s": 52.284,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40131,
    "c": 0.15923,
    "h": 289.2
  },
  "luminance": 0.05691
}

Semantic roles & 50–950 ramp

primary
#4A2F96
secondary
#A4B968
accent
#DC4CB6
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #4A2F96

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

Preview Lab → · Contrast checker → · Palette generator →

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