#4A2FB4#4A2FB4

#4A2FB4 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.9% C 0.196 H 283.7°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#4A2FB4
RGBrgb(74, 47, 180)
HSLhsl(252, 59%, 45%)
HSVhsv(252, 74%, 71%)
CMYKcmyk(58.9%, 73.9%, 0%, 29.4%)
CIE-LABlab(31.31, 47.45, -66.12)
CIE-LCHlch(31.31, 81.38, 305.66°)
OKLaboklab(42.87% 0.0465 -0.1905)
OKLCHoklch(42.87% 0.196 283.7)
XYZxyz(12.0762, 6.7834, 43.8441)
Luminance0.0678 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2FB4 #99B42F
analogous
#2F57B4 #4A2FB4 #8C2FB4
triadic
#4A2FB4 #B44A2F #2FB44A
tetradic
#4A2FB4 #B42F57 #99B42F #2FB48C
square
#4A2FB4 #B42F57 #99B42F #2FB48C
split-complementary
#4A2FB4 #B48C2F #57B42F
monochromatic
#221653 #362283 #4A2FB4 #6A4FD1 #9380DE

Accessibility & contrast

On white

8.91
#4A2FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#4A2FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2FB4
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2FB4#FFFFFF#000000##FFFFFF
##4A2FB41.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB8
Deuteranopia (green-blind)
#0045B2
Tritanopia (blue-blind)
#07546F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4a2fb4;
/* rgb */ color: rgb(74, 47, 180);
/* oklch */ color: oklch(42.9% 0.196 283.7);
Tailwind
colors: {
  custom: {
    50: '#896bcc',
    500: '#4a2fb4',
    950: '#000000',
  },
}
SCSS
$custom: #4a2fb4;
$custom-light: #896bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2fb4",
  "rgb": {
    "r": 74,
    "g": 47,
    "b": 180
  },
  "hsl": {
    "h": 252.18,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.42874,
    "c": 0.1961,
    "h": 283.7
  },
  "luminance": 0.06784
}

Semantic roles & 50–950 ramp

primary
#4A2FB4
secondary
#B7C778
accent
#E246C2
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4A2FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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