#4121C2#4121C2

#4121C2 is a dark, highly saturated violet. Relative luminance 0.061; OKLCH L 42.0% C 0.226 H 279.5°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#4121C2
RGBrgb(65, 33, 194)
HSLhsl(252, 71%, 45%)
HSVhsv(252, 83%, 76%)
CMYKcmyk(66.5%, 83%, 0%, 23.9%)
CIE-LABlab(29.68, 57.10, -77.13)
CIE-LCHlch(29.68, 95.96, 306.52°)
OKLaboklab(41.97% 0.0373 -0.2227)
OKLCHoklch(41.97% 0.226 279.5)
XYZxyz(12.4583, 6.1055, 51.5504)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4121C2 #A2C221
analogous
#2152C2 #4121C2 #9121C2
triadic
#4121C2 #C24121 #21C241
tetradic
#4121C2 #C22152 #A2C221 #21C291
square
#4121C2 #C22152 #A2C221 #21C291
split-complementary
#4121C2 #C29121 #52C221
monochromatic
#1E0F59 #2F188E #4121C2 #6141DF #8C76E8

Accessibility & contrast

On white

9.45
#4121C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#4121C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4121C2
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4121C2#FFFFFF#000000##FFFFFF
##4121C21.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CC6
Deuteranopia (green-blind)
#0040BF
Tritanopia (blue-blind)
#005474
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4121c2;
/* rgb */ color: rgb(65, 33, 194);
/* oklch */ color: oklch(42.0% 0.226 279.5);
Tailwind
colors: {
  custom: {
    50: '#8863d6',
    500: '#4121c2',
    950: '#000000',
  },
}
SCSS
$custom: #4121c2;
$custom-light: #8863d6;
$custom-dark: #000000;
JSON
{
  "hex": "#4121c2",
  "rgb": {
    "r": 65,
    "g": 33,
    "b": 194
  },
  "hsl": {
    "h": 251.925,
    "s": 70.925,
    "l": 44.51
  },
  "oklch": {
    "l": 0.41969,
    "c": 0.22577,
    "h": 279.5
  },
  "luminance": 0.06107
}

Semantic roles & 50–950 ramp

primary
#4121C2
secondary
#BCCF70
accent
#EE3ACA
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0615
muted
#7E7A83

Preview Lab

Preview with #4121C2

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

Preview Lab → · Contrast checker → · Palette generator →

#4121C2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva