#4A2FB1#4A2FB1

#4A2FB1 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.6% C 0.193 H 284.2°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#4A2FB1
RGBrgb(74, 47, 177)
HSLhsl(252, 58%, 44%)
HSVhsv(252, 73%, 69%)
CMYKcmyk(58.2%, 73.4%, 0%, 30.6%)
CIE-LABlab(31.03, 46.55, -64.80)
CIE-LCHlch(31.03, 79.79, 305.69°)
OKLaboklab(42.59% 0.0472 -0.1866)
OKLCHoklch(42.59% 0.193 284.2)
XYZxyz(11.7739, 6.6625, 42.2520)
Luminance0.0666 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2FB1 #96B12F
analogous
#2F55B1 #4A2FB1 #8B2FB1
triadic
#4A2FB1 #B14A2F #2FB14A
tetradic
#4A2FB1 #B12F55 #96B12F #2FB18B
square
#4A2FB1 #B12F55 #96B12F #2FB18B
split-complementary
#4A2FB1 #B18B2F #55B12F
monochromatic
#221550 #362281 #4A2FB1 #684DD0 #917EDD

Accessibility & contrast

On white

9.00
#4A2FB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#4A2FB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2FB1
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2FB1#FFFFFF#000000##FFFFFF
##4A2FB11.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB5
Deuteranopia (green-blind)
#0045AF
Tritanopia (blue-blind)
#10536D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4a2fb1;
/* rgb */ color: rgb(74, 47, 177);
/* oklch */ color: oklch(42.6% 0.193 284.2);
Tailwind
colors: {
  custom: {
    50: '#886ac9',
    500: '#4a2fb1',
    950: '#000000',
  },
}
SCSS
$custom: #4a2fb1;
$custom-light: #886ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2fb1",
  "rgb": {
    "r": 74,
    "g": 47,
    "b": 177
  },
  "hsl": {
    "h": 252.462,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.42588,
    "c": 0.19252,
    "h": 284.2
  },
  "luminance": 0.06663
}

Semantic roles & 50–950 ramp

primary
#4A2FB1
secondary
#B5C576
accent
#E147C1
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0713
muted
#7D7A82

Preview Lab

Preview with #4A2FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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