#4A2FB2#4A2FB2

#4A2FB2 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.7% C 0.194 H 284.0°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#4A2FB2
RGBrgb(74, 47, 178)
HSLhsl(252, 58%, 44%)
HSVhsv(252, 74%, 70%)
CMYKcmyk(58.4%, 73.6%, 0%, 30.2%)
CIE-LABlab(31.12, 46.85, -65.24)
CIE-LCHlch(31.12, 80.32, 305.68°)
OKLaboklab(42.68% 0.047 -0.1879)
OKLCHoklch(42.68% 0.194 284)
XYZxyz(11.8740, 6.7025, 42.7789)
Luminance0.0670 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2FB2 #97B22F
analogous
#2F56B2 #4A2FB2 #8C2FB2
triadic
#4A2FB2 #B24A2F #2FB24A
tetradic
#4A2FB2 #B22F56 #97B22F #2FB28C
square
#4A2FB2 #B22F56 #97B22F #2FB28C
split-complementary
#4A2FB2 #B28C2F #56B22F
monochromatic
#221551 #362282 #4A2FB2 #694ED0 #927EDD

Accessibility & contrast

On white

8.97
#4A2FB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#4A2FB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2FB2
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2FB2#FFFFFF#000000##FFFFFF
##4A2FB21.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB6
Deuteranopia (green-blind)
#0045B0
Tritanopia (blue-blind)
#0D536E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4a2fb2;
/* rgb */ color: rgb(74, 47, 178);
/* oklch */ color: oklch(42.7% 0.194 284.0);
Tailwind
colors: {
  custom: {
    50: '#886bca',
    500: '#4a2fb2',
    950: '#000000',
  },
}
SCSS
$custom: #4a2fb2;
$custom-light: #886bca;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2fb2",
  "rgb": {
    "r": 74,
    "g": 47,
    "b": 178
  },
  "hsl": {
    "h": 252.366,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.42683,
    "c": 0.19371,
    "h": 284
  },
  "luminance": 0.06703
}

Semantic roles & 50–950 ramp

primary
#4A2FB2
secondary
#B6C677
accent
#E146C1
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4A2FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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