#4F22A5#4F22A5

#4F22A5 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.4% C 0.191 H 290.7°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#4F22A5
RGBrgb(79, 34, 165)
HSLhsl(261, 66%, 39%)
HSVhsv(261, 79%, 65%)
CMYKcmyk(52.1%, 79.4%, 0%, 35.3%)
CIE-LABlab(28.17, 50.16, -62.26)
CIE-LCHlch(28.17, 79.95, 308.86°)
OKLaboklab(40.36% 0.0677 -0.1789)
OKLCHoklch(40.36% 0.191 290.7)
XYZxyz(10.5861, 5.5225, 36.0982)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F22A5 #78A522
analogous
#2236A5 #4F22A5 #9122A5
triadic
#4F22A5 #A54F22 #22A54F
tetradic
#4F22A5 #A52236 #78A522 #22A591
square
#4F22A5 #A52236 #78A522 #22A591
split-complementary
#4F22A5 #A59122 #36A522
monochromatic
#1E0D40 #371872 #4F22A5 #6830D4 #8D63DF

Accessibility & contrast

On white

9.98
#4F22A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#4F22A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F22A5
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F22A5#FFFFFF#000000##FFFFFF
##4F22A51.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A9
Deuteranopia (green-blind)
#0040A3
Tritanopia (blue-blind)
#304863
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4f22a5;
/* rgb */ color: rgb(79, 34, 165);
/* oklch */ color: oklch(40.4% 0.191 290.7);
Tailwind
colors: {
  custom: {
    50: '#8a63c1',
    500: '#4f22a5',
    950: '#000000',
  },
}
SCSS
$custom: #4f22a5;
$custom-light: #8a63c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4f22a5",
  "rgb": {
    "r": 79,
    "g": 34,
    "b": 165
  },
  "hsl": {
    "h": 260.611,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40362,
    "c": 0.19133,
    "h": 290.7
  },
  "luminance": 0.05523
}

Semantic roles & 50–950 ramp

primary
#4F22A5
secondary
#A1C45F
accent
#E93FAE
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #4F22A5

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

Preview Lab → · Contrast checker → · Palette generator →

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