#4A22B1#4A22B1

#4A22B1 is a dark, highly saturated violet. Relative luminance 0.058; OKLCH L 41.1% C 0.205 H 285.9°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#4A22B1
RGBrgb(74, 34, 177)
HSLhsl(257, 68%, 41%)
HSVhsv(257, 81%, 69%)
CMYKcmyk(58.2%, 80.8%, 0%, 30.6%)
CIE-LABlab(28.83, 52.82, -68.41)
CIE-LCHlch(28.83, 86.43, 307.67°)
OKLaboklab(41.05% 0.0561 -0.1971)
OKLCHoklch(41.05% 0.205 285.9)
XYZxyz(11.3295, 5.7735, 42.1039)
Luminance0.0577 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A22B1 #89B122
analogous
#2242B1 #4A22B1 #9222B1
triadic
#4A22B1 #B14A22 #22B14A
tetradic
#4A22B1 #B12242 #89B122 #22B192
square
#4A22B1 #B12242 #89B122 #22B192
split-complementary
#4A22B1 #B19222 #42B122
monochromatic
#1F0E4A #35187E #4A22B1 #6538D9 #8C6BE3

Accessibility & contrast

On white

9.75
#4A22B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#4A22B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A22B1
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A22B1#FFFFFF#000000##FFFFFF
##4A22B11.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B5
Deuteranopia (green-blind)
#0040AE
Tritanopia (blue-blind)
#124D6A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4a22b1;
/* rgb */ color: rgb(74, 34, 177);
/* oklch */ color: oklch(41.1% 0.205 285.9);
Tailwind
colors: {
  custom: {
    50: '#8963ca',
    500: '#4a22b1',
    950: '#000000',
  },
}
SCSS
$custom: #4a22b1;
$custom-light: #8963ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4a22b1",
  "rgb": {
    "r": 74,
    "g": 34,
    "b": 177
  },
  "hsl": {
    "h": 256.783,
    "s": 67.773,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41054,
    "c": 0.20488,
    "h": 285.9
  },
  "luminance": 0.05774
}

Semantic roles & 50–950 ramp

primary
#4A22B1
secondary
#ADC966
accent
#EB3DBA
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4A22B1

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

Preview Lab → · Contrast checker → · Palette generator →

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