#4A2F95#4A2F95

#4A2F95 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.0% C 0.158 H 289.5°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#4A2F95
RGBrgb(74, 47, 149)
HSLhsl(256, 52%, 38%)
HSVhsv(256, 68%, 58%)
CMYKcmyk(50.3%, 68.5%, 0%, 41.6%)
CIE-LABlab(28.53, 38.15, -51.94)
CIE-LCHlch(28.53, 64.45, 306.29°)
OKLaboklab(40.04% 0.0526 -0.1489)
OKLCHoklch(40.04% 0.158 289.5)
XYZxyz(9.2638, 5.6584, 29.0320)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2F95 #7A952F
analogous
#2F4795 #4A2F95 #7D2F95
triadic
#4A2F95 #954A2F #2F954A
tetradic
#4A2F95 #952F47 #7A952F #2F957D
square
#4A2F95 #952F47 #7A952F #2F957D
split-complementary
#4A2F95 #957D2F #47952F
monochromatic
#1C1238 #332066 #4A2F95 #623FC2 #886DD1

Accessibility & contrast

On white

9.85
#4A2F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A2F95
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2F95#FFFFFF#000000##FFFFFF
##4A2F951.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004598
Deuteranopia (green-blind)
#004193
Tritanopia (blue-blind)
#30485E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4a2f95;
/* rgb */ color: rgb(74, 47, 149);
/* oklch */ color: oklch(40.0% 0.158 289.5);
Tailwind
colors: {
  custom: {
    50: '#8469b5',
    500: '#4a2f95',
    950: '#000000',
  },
}
SCSS
$custom: #4a2f95;
$custom-light: #8469b5;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2f95",
  "rgb": {
    "r": 74,
    "g": 47,
    "b": 149
  },
  "hsl": {
    "h": 255.882,
    "s": 52.041,
    "l": 38.431
  },
  "oklch": {
    "l": 0.40045,
    "c": 0.15796,
    "h": 289.5
  },
  "luminance": 0.05659
}

Semantic roles & 50–950 ramp

primary
#4A2F95
secondary
#A3B867
accent
#DB4CB6
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #4A2F95

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

Preview Lab → · Contrast checker → · Palette generator →

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