#4F22A6#4F22A6

#4F22A6 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.5% C 0.192 H 290.5°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#4F22A6
RGBrgb(79, 34, 166)
HSLhsl(260, 66%, 39%)
HSVhsv(260, 80%, 65%)
CMYKcmyk(52.4%, 79.5%, 0%, 34.9%)
CIE-LABlab(28.27, 50.43, -62.70)
CIE-LCHlch(28.27, 80.47, 308.81°)
OKLaboklab(40.46% 0.0674 -0.1802)
OKLCHoklch(40.46% 0.192 290.5)
XYZxyz(10.6774, 5.5590, 36.5794)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F22A6 #79A622
analogous
#2237A6 #4F22A6 #9122A6
triadic
#4F22A6 #A64F22 #22A64F
tetradic
#4F22A6 #A62237 #79A622 #22A691
square
#4F22A6 #A62237 #79A622 #22A691
split-complementary
#4F22A6 #A69122 #37A622
monochromatic
#1F0D40 #371873 #4F22A6 #6830D5 #8E63DF

Accessibility & contrast

On white

9.94
#4F22A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#4F22A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F22A6
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F22A6#FFFFFF#000000##FFFFFF
##4F22A61.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AA
Deuteranopia (green-blind)
#0040A4
Tritanopia (blue-blind)
#2F4864
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4f22a6;
/* rgb */ color: rgb(79, 34, 166);
/* oklch */ color: oklch(40.5% 0.192 290.5);
Tailwind
colors: {
  custom: {
    50: '#8a63c2',
    500: '#4f22a6',
    950: '#000000',
  },
}
SCSS
$custom: #4f22a6;
$custom-light: #8a63c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4f22a6",
  "rgb": {
    "r": 79,
    "g": 34,
    "b": 166
  },
  "hsl": {
    "h": 260.455,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40459,
    "c": 0.19243,
    "h": 290.5
  },
  "luminance": 0.05559
}

Semantic roles & 50–950 ramp

primary
#4F22A6
secondary
#A2C45F
accent
#E93FAF
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #4F22A6

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

Preview Lab → · Contrast checker → · Palette generator →

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