#4A2F94#4A2F94

#4A2F94 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.0% C 0.157 H 289.7°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#4A2F94
RGBrgb(74, 47, 148)
HSLhsl(256, 52%, 38%)
HSVhsv(256, 68%, 58%)
CMYKcmyk(50%, 68.2%, 0%, 42%)
CIE-LABlab(28.45, 37.85, -51.47)
CIE-LCHlch(28.45, 63.88, 306.33°)
OKLaboklab(39.96% 0.0528 -0.1475)
OKLCHoklch(39.96% 0.157 289.7)
XYZxyz(9.1843, 5.6266, 28.6134)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2F94 #79942F
analogous
#2F4694 #4A2F94 #7C2F94
triadic
#4A2F94 #944A2F #2F944A
tetradic
#4A2F94 #942F46 #79942F #2F947C
square
#4A2F94 #942F46 #79942F #2F947C
split-complementary
#4A2F94 #947C2F #46942F
monochromatic
#1C1137 #332066 #4A2F94 #623EC2 #876DD1

Accessibility & contrast

On white

9.88
#4A2F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#4A2F94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2F94
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2F94#FFFFFF#000000##FFFFFF
##4A2F941.009.882.139.88
#FFFFFF9.881.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004597
Deuteranopia (green-blind)
#004192
Tritanopia (blue-blind)
#31485D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4a2f94;
/* rgb */ color: rgb(74, 47, 148);
/* oklch */ color: oklch(40.0% 0.157 289.7);
Tailwind
colors: {
  custom: {
    50: '#8369b4',
    500: '#4a2f94',
    950: '#000000',
  },
}
SCSS
$custom: #4a2f94;
$custom-light: #8369b4;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2f94",
  "rgb": {
    "r": 74,
    "g": 47,
    "b": 148
  },
  "hsl": {
    "h": 256.04,
    "s": 51.795,
    "l": 38.235
  },
  "oklch": {
    "l": 0.39959,
    "c": 0.15668,
    "h": 289.7
  },
  "luminance": 0.05627
}

Semantic roles & 50–950 ramp

primary
#4A2F94
secondary
#A2B867
accent
#DB4DB5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #4A2F94

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

Preview Lab → · Contrast checker → · Palette generator →

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