#4F22A7#4F22A7

#4F22A7 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.6% C 0.194 H 290.3°. Best body text is #FFFFFF at 9.91:1 contrast (WCAG AA passes).

Color values

HEX#4F22A7
RGBrgb(79, 34, 167)
HSLhsl(260, 66%, 39%)
HSVhsv(260, 80%, 65%)
CMYKcmyk(52.7%, 79.6%, 0%, 34.5%)
CIE-LABlab(28.37, 50.70, -63.15)
CIE-LCHlch(28.37, 80.98, 308.76°)
OKLaboklab(40.56% 0.0671 -0.1815)
OKLCHoklch(40.56% 0.194 290.3)
XYZxyz(10.7695, 5.5959, 37.0644)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F22A7 #7AA722
analogous
#2237A7 #4F22A7 #9222A7
triadic
#4F22A7 #A74F22 #22A74F
tetradic
#4F22A7 #A72237 #7AA722 #22A792
square
#4F22A7 #A72237 #7AA722 #22A792
split-complementary
#4F22A7 #A79222 #37A722
monochromatic
#1F0D41 #371874 #4F22A7 #6931D5 #8E64DF

Accessibility & contrast

On white

9.91
#4F22A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#4F22A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F22A7
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F22A7#FFFFFF#000000##FFFFFF
##4F22A71.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AB
Deuteranopia (green-blind)
#0040A5
Tritanopia (blue-blind)
#2E4965
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4f22a7;
/* rgb */ color: rgb(79, 34, 167);
/* oklch */ color: oklch(40.6% 0.194 290.3);
Tailwind
colors: {
  custom: {
    50: '#8a63c2',
    500: '#4f22a7',
    950: '#000000',
  },
}
SCSS
$custom: #4f22a7;
$custom-light: #8a63c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4f22a7",
  "rgb": {
    "r": 79,
    "g": 34,
    "b": 167
  },
  "hsl": {
    "h": 260.301,
    "s": 66.169,
    "l": 39.412
  },
  "oklch": {
    "l": 0.40556,
    "c": 0.19354,
    "h": 290.3
  },
  "luminance": 0.05596
}

Semantic roles & 50–950 ramp

primary
#4F22A7
secondary
#A3C560
accent
#E93FAF
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4F22A7

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

Preview Lab → · Contrast checker → · Palette generator →

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