#4A2CA7#4A2CA7

#4A2CA7 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.2% C 0.184 H 286.4°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#4A2CA7
RGBrgb(74, 44, 167)
HSLhsl(255, 58%, 41%)
HSVhsv(255, 74%, 65%)
CMYKcmyk(55.7%, 73.7%, 0%, 34.5%)
CIE-LABlab(29.53, 45.16, -61.26)
CIE-LCHlch(29.53, 76.11, 306.40°)
OKLaboklab(41.25% 0.0519 -0.1763)
OKLCHoklch(41.25% 0.184 286.4)
XYZxyz(10.6977, 6.0466, 37.1551)
Luminance0.0605 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2CA7 #89A72C
analogous
#2C4CA7 #4A2CA7 #882CA7
triadic
#4A2CA7 #A74A2C #2CA74A
tetradic
#4A2CA7 #A72C4C #89A72C #2CA788
square
#4A2CA7 #A72C4C #89A72C #2CA788
split-complementary
#4A2CA7 #A7882C #4CA72C
monochromatic
#1F1246 #351F77 #4A2CA7 #6543CD #8C73DA

Accessibility & contrast

On white

9.50
#4A2CA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#4A2CA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2CA7
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2CA7#FFFFFF#000000##FFFFFF
##4A2CA71.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AB
Deuteranopia (green-blind)
#0042A5
Tritanopia (blue-blind)
#214D67
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4a2ca7;
/* rgb */ color: rgb(74, 44, 167);
/* oklch */ color: oklch(41.2% 0.184 286.4);
Tailwind
colors: {
  custom: {
    50: '#8768c2',
    500: '#4a2ca7',
    950: '#000000',
  },
}
SCSS
$custom: #4a2ca7;
$custom-light: #8768c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2ca7",
  "rgb": {
    "r": 74,
    "g": 44,
    "b": 167
  },
  "hsl": {
    "h": 254.634,
    "s": 58.294,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41245,
    "c": 0.18373,
    "h": 286.4
  },
  "luminance": 0.06047
}

Semantic roles & 50–950 ramp

primary
#4A2CA7
secondary
#ADC26D
accent
#E246BC
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4A2CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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