#4F21C3#4F21C3

#4F21C3 is a dark, highly saturated violet. Relative luminance 0.067; OKLCH L 43.3% C 0.225 H 285.0°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#4F21C3
RGBrgb(79, 33, 195)
HSLhsl(257, 71%, 45%)
HSVhsv(257, 83%, 76%)
CMYKcmyk(59.5%, 83.1%, 0%, 23.5%)
CIE-LABlab(31.09, 58.65, -75.34)
CIE-LCHlch(31.09, 95.48, 307.90°)
OKLaboklab(43.29% 0.0582 -0.2171)
OKLCHoklch(43.29% 0.225 285)
XYZxyz(13.6156, 6.6892, 52.1929)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F21C3 #95C321
analogous
#2144C3 #4F21C3 #A021C3
triadic
#4F21C3 #C34F21 #21C34F
tetradic
#4F21C3 #C32144 #95C321 #21C3A0
square
#4F21C3 #C32144 #95C321 #21C3A0
split-complementary
#4F21C3 #C3A021 #44C321
monochromatic
#250F5A #3A188F #4F21C3 #6F42DF #9777E8

Accessibility & contrast

On white

8.98
#4F21C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F21C3
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F21C3#FFFFFF#000000##FFFFFF
##4F21C31.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DC7
Deuteranopia (green-blind)
#0044C0
Tritanopia (blue-blind)
#005475
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4f21c3;
/* rgb */ color: rgb(79, 33, 195);
/* oklch */ color: oklch(43.3% 0.225 285.0);
Tailwind
colors: {
  custom: {
    50: '#8f65d7',
    500: '#4f21c3',
    950: '#000000',
  },
}
SCSS
$custom: #4f21c3;
$custom-light: #8f65d7;
$custom-dark: #000000;
JSON
{
  "hex": "#4f21c3",
  "rgb": {
    "r": 79,
    "g": 33,
    "b": 195
  },
  "hsl": {
    "h": 257.037,
    "s": 71.053,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43287,
    "c": 0.22478,
    "h": 285
  },
  "luminance": 0.0669
}

Semantic roles & 50–950 ramp

primary
#4F21C3
secondary
#B4CF71
accent
#EE3ABB
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0615
muted
#7E7A83

Preview Lab

Preview with #4F21C3

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

Preview Lab → · Contrast checker → · Palette generator →

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