#4121A8#4121A8

#4121A8 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.2% C 0.197 H 283.4°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#4121A8
RGBrgb(65, 33, 168)
HSLhsl(254, 67%, 39%)
HSVhsv(254, 80%, 66%)
CMYKcmyk(61.3%, 80.4%, 0%, 34.1%)
CIE-LABlab(26.84, 49.71, -66.32)
CIE-LCHlch(26.84, 82.88, 306.85°)
OKLaboklab(39.18% 0.0457 -0.1912)
OKLCHoklch(39.18% 0.197 283.4)
XYZxyz(9.7895, 5.0380, 37.4948)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4121A8 #88A821
analogous
#2145A8 #4121A8 #8521A8
triadic
#4121A8 #A84121 #21A841
tetradic
#4121A8 #A82145 #88A821 #21A885
square
#4121A8 #A82145 #88A821 #21A885
split-complementary
#4121A8 #A88521 #45A821
monochromatic
#190D42 #2D1775 #4121A8 #5730D6 #8163E0

Accessibility & contrast

On white

10.46
#4121A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#4121A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4121A8
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4121A8#FFFFFF#000000##FFFFFF
##4121A81.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AC
Deuteranopia (green-blind)
#003BA6
Tritanopia (blue-blind)
#004A65
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4121a8;
/* rgb */ color: rgb(65, 33, 168);
/* oklch */ color: oklch(39.2% 0.197 283.4);
Tailwind
colors: {
  custom: {
    50: '#8362c3',
    500: '#4121a8',
    950: '#000000',
  },
}
SCSS
$custom: #4121a8;
$custom-light: #8362c3;
$custom-dark: #000000;
JSON
{
  "hex": "#4121a8",
  "rgb": {
    "r": 65,
    "g": 33,
    "b": 168
  },
  "hsl": {
    "h": 254.222,
    "s": 67.164,
    "l": 39.412
  },
  "oklch": {
    "l": 0.39179,
    "c": 0.1966,
    "h": 283.4
  },
  "luminance": 0.05039
}

Semantic roles & 50–950 ramp

primary
#4121A8
secondary
#ADC55F
accent
#EA3EC1
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #4121A8

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

Preview Lab → · Contrast checker → · Palette generator →

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